SoGLRenderState¶
-
InventorModule
¶ genre Shader
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoShader
definition SoShader.def keywords vertex
,fragment
,geometry
,shader
Purpose¶
This low-level module allows to manually change OpenGL state in the Open Inventor scene. You should only use it if you know what you are doing, since the manual change of GL state is not known to Open Inventor and can have strange side effects.
The module is a bit unusual since by default, all fields are set to ‘ignored’ state and have no effect on the scene. To enable the functionality of a field, use the field’s context menu and disable Set Open Inventor Ignore Flag.
Parameter Fields¶
Field Index¶
attribSaveMode : Enum |
Point Sprites : Bool |
Blend Mode : Enum |
Poly Back Mode : Enum |
Blending : Bool |
Poly Front Mode : Enum |
Cull Mode : Enum |
Write Mask Depth : Bool |
Depth Enable : Bool |
|
Depth Function : Enum |
|
Line Smooth : Bool |
|
Line Width : Float |
Visible Fields¶
Cull Mode¶
-
name:
cullMode
, type:
Enum
, default:
BACK
¶ Allows to select the cull mode.
Values:
Title | Name |
---|---|
None | NONE |
Back | BACK |
Front | FRONT |
Front And Back | FRONT_AND_BACK |
Depth Function¶
-
name:
depthFunction
, type:
Enum
, default:
LESS
¶ Select the depth compare function.
Values:
Title | Name |
---|---|
Never | NEVER |
Less | LESS |
Equal | EQUAL |
Less Equal | LESS_EQUAL |
Greater | GREATER |
Not Equal | NOT_EQUAL |
Greater Equal | GREATER_EQUAL |
Always | ALWAYS |
Write Mask Depth¶
-
name:
writeMaskDepth
, type:
Bool
, default:
TRUE
¶ Enable/disable writing to the depth buffer.
Poly Front Mode¶
-
name:
polyFrontMode
, type:
Enum
, default:
FILL
¶ Select the draw style of the front side of polygons.
Values:
Title | Name |
---|---|
Points | POINTS |
Lines | LINES |
Fill | FILL |
Poly Back Mode¶
-
name:
polyBackMode
, type:
Enum
, default:
FILL
¶ Select the draw style of the back side of polygons.
Values:
Title | Name |
---|---|
Points | POINTS |
Lines | LINES |
Fill | FILL |
Line Smooth¶
Point Sprites¶
-
name:
pointSprites
, type:
Bool
, default:
FALSE
¶ Enables point sprite mode for GL_POINTS.