| 1 |
NAME SoTextureCoordinatePlane SoTexPln "" { |
| 2 |
node that specifies texture coordinates by projection from a plane |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE nodes/SoTextureCoordinatePlane.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This node creates texture coordinates for points on an object's |
| 9 |
surface by projecting them onto a plane. |
| 10 |
The \vdirectionS\. and \vdirectionT\. fields define the plane. |
| 11 |
The S coordinate is computed as the distance from the object-space |
| 12 |
origin along the vector specified in the \vdirectionS\. field. |
| 13 |
The T coordinate is computed similarly, |
| 14 |
using the \vdirectionT\. field. |
| 15 |
\p |
| 16 |
The length of the direction vector is also taken into account. |
| 17 |
For example, assume \vdirectionS\. is (0.5, 0, 0) and \vdirectionT\. is |
| 18 |
(0, 1, 0). The square defined by the (x, y, z) vertices: |
| 19 |
\b |
| 20 |
(-1, -1, 0) (1, -1, 0) (1, 1, 0) (-1, 1, 0) |
| 21 |
\. |
| 22 |
will be assigned the (s, t) texture coordinates: |
| 23 |
\b |
| 24 |
(-2, -1) (2, -1) (2, 1) (-2, 1) |
| 25 |
\. |
| 26 |
} |
| 27 |
|
| 28 |
FIELD directionS {} |
| 29 |
FIELD directionT { Directions of projection for S and T coordinates. } |
| 30 |
|
| 31 |
METHOD "" SoTextureCoordinatePlane() { |
| 32 |
Creates a texture function node with default settings. |
| 33 |
} |
| 34 |
|
| 35 |
METHOD "" static SoType getClassTypeId() { |
| 36 |
Returns type identifier for this class. |
| 37 |
} |
| 38 |
|
| 39 |
ACTION SoGLRenderAction, SoCallbackAction, SoRayPickAction { |
| 40 |
Sets the current texture function in the state. |
| 41 |
} |
| 42 |
|
| 43 |
ALSO { |
| 44 |
SoTexture2, |
| 45 |
SoTexture2Transform, |
| 46 |
SoTextureCoordinateDefault, |
| 47 |
SoTextureCoordinateEnvironment |
| 48 |
} |