intrinsic-185 Set3DTextureParams

Top  Previous  Next

185: Set3DTextureParams(Handle, VarIndex, X, Y, Z, W);

 

This intrinsic sets parameters associated with a texture applied to a mesh by the Set3DTexture intrinsic.

 

Arguments:

 

Handle. This argument is an integer handle created by the Add3DObject intrinsic. It must be a mesh handle that specifies which mesh the parameters apply to.

 

VarIndex. This integer value specifies which parameter is being set. The values being set are specified in the X, Y, Z and W parameters.

 

0 = Scale2D. If this Index is selected, the X and Y real values are used as 2D scaling factors for the texture image.

1 = Offset2D. If this Index is selected, the X and Y real values are used as 2D offset factors for the texture image.

2 = Scale3D. If this Index is selected, the X, Y and Z real values are used as 3D scaling factors for the texture image.

3 = Offset3D. If this Index is selected, the X, Y and Z real values are used as 3D offset factors for the texture image.

4 = RPlane. If this Index is selected, the X, Y, Z, and W real values are used to define the R-Projection plane for the texture image.

5 = SPlane. If this Index is selected, the X, Y, Z, and W real values are used to define the S-Projection plane for the texture image

6 = TPlane. If this Index is selected, the X, Y, Z, and W real values are used to define the T-Projection plane for the texture image

7 = Radius. If this Index is selected, the X  real value is used to specify the toroidal radius for the Toroidal texture mode.

8 = Yaw. If this Index is selected, the X real value is used to specify the Yaw rotation of the texture projection.

9 = Pitch. If this Index is selected, the X real value is used to specify the Pitch rotation of the texture projection.

10 = Roll. If this Index is selected, the X real value is used to specify the Roll rotation of the texture projection.

 

X,Y,Z,W. These four real values are the actual parameter values that are sent to Texture routines. Which ones are used and what they mean is defined by the VarIndex value described above.