Package com.openinventor.inventor.nodes
Class SoVertexShaderParameter4s
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.SoVertexShaderParameter
com.openinventor.inventor.nodes.SoVertexShaderParameter4s
- All Implemented Interfaces:
SafeDisposable
Vertex shader parameter node storing a four-dimensional (short integer) vector.
This node allows the application to provide a per-vertex parameter of type four-dimensional vector of short integers to shader objects, e.g.
SoVertexShader.
Vertex shader parameter nodes must be inserted in the scene graph.
See the base classes SoShaderParameter and SoVertexShaderParameter for details.
The rangeScaling field indicates if values shall be scaled to a normalized range when they are loaded. Setting rangeScaling to true implies the following conversion for each component c of the vector: (2*c+1)/(2^16-1), i.e., scaling from [-2^15;2^15-1] to [-1;+1].
File format/default:
VertexShaderParameter4s {
| name | "" |
| identifier | 0 |
| value | 0 0 0 1 |
| rangeScaling | false |
- 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
FieldsModifier and TypeFieldDescriptionfinal SoSFBoolIndicates if values shall be scaled to a normalized range when they are loaded.final SoMFVec4sSpecifies the parameter's values.Fields 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.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 values. -
rangeScaling
Indicates if values shall be scaled to a normalized range when they are loaded.
-
-
Constructor Details
-
SoVertexShaderParameter4s
public SoVertexShaderParameter4s()Constructor.
-