SoVertexShaderParameter Class Reference
[Shaders]

VSG extension Abstract base class for all vertex shader parameter nodes. More...

#include <Inventor/nodes/SoShaderParameter.h>

Inheritance diagram for SoVertexShaderParameter:
SoShaderParameter SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject SoVertexShaderParameter1f SoVertexShaderParameter1s SoVertexShaderParameter2f SoVertexShaderParameter2s SoVertexShaderParameter3f SoVertexShaderParameter3s SoVertexShaderParameter4b SoVertexShaderParameter4f SoVertexShaderParameter4i SoVertexShaderParameter4s SoVertexShaderParameter4ub SoVertexShaderParameter4ui SoVertexShaderParameter4us SoVertexShaderParameterBufferObject SoVertexShaderParameterMatrix

List of all members.

Public Member Functions

virtual SoType getTypeId () const

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

VSG extension Abstract base class for all vertex shader parameter nodes.

This is the abstract class from which all the vertex shader parameter nodes are derived.

These nodes allow applications to provide per-vertex parameters to shader objects.

Vertex shader parameter nodes must be inserted in the scene graph.

Each parameter is defined by the following properties:

Note that, unlike uniform parameters, the value field must contain as many values as there are vertices in the geometry to be rendered.

Warning:
Whatever the type of SoVertexShaderParameter (int, float, short, etc...), values are always converted to "float" before being sent to the shader, so you have to use a floating type (float, vec2, vec3, vec4, ...) when declaring the vertex parameter in the shader. Some types are directly cast to float while others may be normalized. If the subclass contains a field "rangeScaling", then you can request to normalize the data before sending them to shaders.

See the base class SoShaderParameter for information about how to specify the name and/or identifier of a parameter.

EXAMPLE

FILE FORMAT/DEFAULT

SEE ALSO

SoShaderParameter, SoUniformShaderParameter, SoVertexShaderParameter1f, SoVertexShaderParameter1s, SoVertexShaderParameter2f, SoVertexShaderParameter2s, SoVertexShaderParameter3f, SoVertexShaderParameter3s, SoVertexShaderParameter4f, SoVertexShaderParameter4i, SoVertexShaderParameter4s, SoVertexShaderParameter4b, SoVertexShaderParameter4ui, SoVertexShaderParameter4us, SoVertexShaderParameter4ub, SoVertexShaderParameterMatrix, SoShaderObject, SoShaderProgram.


Member Function Documentation

static SoType SoVertexShaderParameter::getClassTypeId (  )  [static]
virtual SoType SoVertexShaderParameter::getTypeId (  )  const [virtual]

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/