14 Managing Shader Characteristics

14 Q3Shader_SetUVTransform

You can use the Q3Shader_SetUVTransform function to set the transform in uv parametric space.

TQ3Status Q3Shader_SetUVTransform (
TQ3ShaderObject shader, 
const TQ3Matrix3x3 *uvTransform);
shader A shader.
uvTransform A pointer to the desired transform in uv parametric space.

DESCRIPTION


The Q3Shader_SetUVTransform function sets the transform in uv parametric space for the shader specified by the shader parameter to the transform specified by the uvTransform parameter. For example, a texture shader that relies on uv values to index a texture mapping can rotate, scale, or translate the texture by setting appropriate values in the uv transform.

DESCRIPTION

3D Graphics Programming with QuickDraw 3D - 17 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker