Node that specifies texture coordinates which are a linear combination of the object coordinates of the vertex. More...
#include <Inventor/nodes/SoTextureCoordinateObject.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoTextureCoordinateObject () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFVec4f | factorS |
SoSFVec4f | factorT |
SoSFVec4f | factorR |
SoSFVec4f | factorQ |
This node creates texture coordinates which are a linear combination of the object coordinates of the vertex (xo, yo, zo, wo). A factor can be defined for each component of the texture coordinate (S, T, R, and Q). The generated texture coordinate (S, R, T) at each vertex is:
S = factorS[0] * xo + factorS[1]* yo + factorS[2] * zo + factorS[3] * wo
R = factorR[0] * xo + factorR[1]* yo + factorR[2] * zo + factorR[3] * wo
T = factorT[0] * xo + factorT[1]* yo + factorT[2] * zo + factorT[3] * wo
wo usually equals 1.
factorS | 1 0 0 0 |
factorT | 0 1 0 0 |
factorR | 0 0 1 0 |
factorQ | 0 0 0 1 |
SoTexture2, SoTexture2Transform, SoTextureCoordinateDefault, SoTextureCoordinatePlane, SoTextureCoordinateEnvironment.
SoTextureCoordinateObject::SoTextureCoordinateObject | ( | ) |
Creates a texture function node with default settings.
static SoType SoTextureCoordinateObject::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoTextureCoordinateFunction.
virtual SoType SoTextureCoordinateObject::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoTextureCoordinateFunction.
Factor applied to generate the coordinate Q.
Factor applied to generate the coordinate R.
Factor applied to generate the coordinate S.
Factor applied to generate the coordinate T.