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).
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.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. OutOfMemoryException ![]()
Microsoft Direct3D could not allocate sufficient memory to complete the call.
Show:
