Share via


PrtEngine.SetPerTexelNormal(Texture) Method (Microsoft.DirectX.Direct3D)

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.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.