public class SoVertexShader extends SoShaderObject
See SoShaderProgram
for general information about using shaders and shader parameters.
See parent class SoShaderObject
for details about using the inherited fields.
Notes:
SoShaderProgram
node.
Predefined GLSL variables.
Open Inventor uses a compatibility profile context for rendering. So legacy GLSL predefined variables, for example gl_ModelViewMatrix, can be used in vertex shaders. However, if you use the GLSL "#version" directive in a shader, you should append the keyword "compatibility", for example: "#version 150 compatibility".
SoShadowGroup
for example code.
Limitations:
SoGetBoundingBoxAction
, SoGetPrimitiveCountAction
and SoRayPickAction
.
File format/default:
VertexShader {
sourceProgram | "" |
sourceType | FILENAME |
isActive | true |
parameter | NULL |
See also:
SoFragmentShader
, SoGeometryShader
, SoShaderObject
, SoShaderProgram
, SoTessellationControlShader
, SoTessellationEvaluationShader
, SoUniformShaderParameter
, SoVertexShaderParameter
SoShaderObject.ShaderTypes, SoShaderObject.SourceTypes
SoNode.RenderModes
Inventor.ConstructorCommand
isActive, parameter, sourceProgram, sourceType
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoVertexShader()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isSupported(SoShaderObject.SourceTypes sourceType)
Calls isSupported(sourceType, (com.openinventor.inventor.misc.SoState)null).
|
static boolean |
isSupported(SoShaderObject.SourceTypes sourceType,
SoState state)
Indicates if vertex shaders in the specified language are supported by your graphics board.
|
getShaderType
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public static boolean isSupported(SoShaderObject.SourceTypes sourceType)
public static boolean isSupported(SoShaderObject.SourceTypes sourceType, SoState state)
SoGLExtension
for an example of using SoGLContext
to avoid them.Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com