SoGLRenderState¶
-
InventorModule
¶ genre Shader
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoShader
definition SoShader.def keywords vertex
,fragment
,geometry
,shader
Purpose¶
The low-level module SoGLRenderState
allows for manually changing the OpenGL state in the Open Inventor scene. Use it only if you understand the implications, as manual changes to the OpenGL state are not recognized by Open Inventor and may lead to unexpected side effects.
This module is somewhat unusual because, by default, all fields are set to the ‘ignored’ state and do not affect the scene.
To enable a field’s functionality, access 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
¶ Defines the cull mode.
Values:
Title | Name |
---|---|
None | NONE |
Back | BACK |
Front | FRONT |
Front And Back | FRONT_AND_BACK |
Depth Enable¶
-
name:
depthEnable
, type:
Bool
, default:
TRUE
¶ If checked, the depth buffer is enabled.
Depth Function¶
-
name:
depthFunction
, type:
Enum
, default:
LESS
¶ Defines 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
¶ If checked, the writing to the depth buffer is enabled.
Poly Front Mode¶
-
name:
polyFrontMode
, type:
Enum
, default:
FILL
¶ Defines 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
¶ Defines 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
¶ If checked, the point sprite mode for GL_POINTS is enabled.