Microsoft DirectX 9.0 SDK Update (October 2004)

PrtEngine.SetPerTexelNormal Method

Language:

Note: This documentation is preliminary and is subject to change.

Sets a normal vector for each texel in a texture object. This method is used to store vertex normal vectors from a mesh (or interpolated vertex normals if pixel-based precomputed radiance transfer (PRT) is being computed).

Definition

Visual Basic .NET Public Sub SetPerTexelNormal( _
    ByVal normalTexture As Texture _
)
C# public void SetPerTexelNormal(
    Texture normalTexture
);
Managed C++ public: void SetPerTexelNormal(
    Texture *normalTexture
);
JScript .NET public function SetPerTexelNormal(
    normalTexture : Texture
);

Parameters

normalTexture Microsoft.DirectX.Direct3D.Texture. A Texture object that serves as an object space normal map in which to store normal vectors. The texture must have the same dimensions as PrtBuffer and must be able to store signed texture formats.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center