public class SoShaderStateMatrixParameter extends SoUniformShaderParameter
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.
This parameter should be only used with NVIDIA Cg (has no effect otherwise) and only if the profile is neither arbvp1 nor arbfp1. With either of the profiles arbvp1 and arbfp1, the OpenGL state matrix is directly accessible from the variable glstate.matrix.
NOTE: Using this parameter may slow down the rendering process because each SoTransform
node in the scene graph below the SoShaderProgram
will break the render cache.
File format/default:
ShaderStateMatrixParameter {
name | "" |
identifier | 0 |
matrixType | MODELVIEW |
matrixTransform | 1 0 0 0 |
0 1 0 0 | |
0 0 1 0 | |
0 0 0 1 | |
shaderType | VERTEX |
See also:
SoShaderParameter
, SoUniformShaderParameter
, SoShaderParameter1f
, SoShaderParameter1i
, SoShaderParameter2f
, SoShaderParameter2i
, SoShaderParameter3f
, SoShaderParameter3i
, SoShaderParameter4f
, SoShaderParameter4i
, SoShaderParameterArray1f
, SoShaderParameterArray1i
, SoShaderParameterArray2f
, SoShaderParameterArray2i
, SoShaderParameterArray3f
, SoShaderParameterArray3i
, SoShaderParameterArray4f
, SoShaderParameter4i
, SoShaderParameterMatrix
, SoShaderParameterMatrixArray
, SoShaderObject
, SoShaderProgram
.
Modifier and Type | Class and Description |
---|---|
static class |
SoShaderStateMatrixParameter.MatrixTransforms
Matrix transformation possible values.
|
static class |
SoShaderStateMatrixParameter.MatrixTypes
Matrix type possible values.
|
SoUniformShaderParameter.ShaderTypes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
IDENTITY
Deprecated.
|
static int |
INVERSE
Deprecated.
|
static int |
INVERSE_TRANSPOSE
Deprecated.
|
SoSFEnum<SoShaderStateMatrixParameter.MatrixTransforms> |
matrixTransform
Specifies the transformation to be applied to the state matrix.
|
SoSFEnum<SoShaderStateMatrixParameter.MatrixTypes> |
matrixType
Specifies the type of the state matrix.
|
static int |
MODELVIEW
Deprecated.
Use
SoShaderStateMatrixParameter.MatrixTypes.MODELVIEW instead. |
static int |
MODELVIEW_PROJECTION
Deprecated.
|
static int |
PROJECTION
Deprecated.
Use
SoShaderStateMatrixParameter.MatrixTypes.PROJECTION instead. |
static int |
TEXTURE
Deprecated.
Use
SoShaderStateMatrixParameter.MatrixTypes.TEXTURE instead. |
static int |
TRANSPOSE
Deprecated.
|
FRAGMENT, shaderType, VERTEX
identifier, name
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoShaderStateMatrixParameter()
Constructor.
|
isEqual
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, 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, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int MODELVIEW
SoShaderStateMatrixParameter.MatrixTypes.MODELVIEW
instead.@Deprecated public static final int PROJECTION
SoShaderStateMatrixParameter.MatrixTypes.PROJECTION
instead.@Deprecated public static final int TEXTURE
SoShaderStateMatrixParameter.MatrixTypes.TEXTURE
instead.@Deprecated public static final int MODELVIEW_PROJECTION
SoShaderStateMatrixParameter.MatrixTypes.MODELVIEW_PROJECTION
instead.@Deprecated public static final int IDENTITY
SoShaderStateMatrixParameter.MatrixTransforms.IDENTITY
instead.@Deprecated public static final int TRANSPOSE
SoShaderStateMatrixParameter.MatrixTransforms.TRANSPOSE
instead.@Deprecated public static final int INVERSE
SoShaderStateMatrixParameter.MatrixTransforms.INVERSE
instead.@Deprecated public static final int INVERSE_TRANSPOSE
SoShaderStateMatrixParameter.MatrixTransforms.INVERSE_TRANSPOSE
instead.public final SoSFEnum<SoShaderStateMatrixParameter.MatrixTypes> matrixType
public final SoSFEnum<SoShaderStateMatrixParameter.MatrixTransforms> matrixTransform
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com