PrtEngine.SetPerTexelNormal Method

Language:

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 Public Sub SetPerTexelNormal( _
    ByVal normalTexture As Texture _
)
C# public void SetPerTexelNormal(
    Texture normalTexture
);
C++ public:
void SetPerTexelNormal(
    TexturenormalTexture
);
JScript 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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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