Package com.openinventor.inventor.nodes
Class SoShaderParameterMatrix
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.nodes.SoNode
com.openinventor.inventor.nodes.SoShaderParameter
com.openinventor.inventor.nodes.SoUniformShaderParameter
com.openinventor.inventor.nodes.SoShaderParameterMatrix
- All Implemented Interfaces:
SafeDisposable
Uniform shader parameter node storing a 4x4 matrix.
This node allows the application to provide a uniform parameter of type 4x4 matrix of floats to a shader object, e.g.
SoFragmentShader.
Uniform shader parameter nodes are usually added to the shader object's parameter field to affect only that specific shader program, but can also be inserted in the scene graph and affect all subsequent shader programs.
See the base classes SoShaderParameter and SoUniformShaderParameter for details.
Caution: With shader programs written using the ARB_ language, identifier, identifier + 1, identifier + 2, identifier + 3 will automatically refer to columns 0, 1, 2, and 3 of the matrix.
File format/default:
ShaderParameterMatrix {
| name | "" |
| identifier | 0 |
| value | 1 0 0 0 |
| 0 1 0 0 | |
| 0 0 1 0 | |
| 0 0 0 1 | |
| shaderType | VERTEX |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsFields inherited from class com.openinventor.inventor.nodes.SoShaderParameter
identifier, nameFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.openinventor.inventor.nodes.SoUniformShaderParameter
isEqualMethods inherited from class com.openinventor.inventor.nodes.SoNode
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, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
value
Specifies the parameter's value. Default is identity matrix.
-
-
Constructor Details
-
SoShaderParameterMatrix
public SoShaderParameterMatrix()Constructor.
-