Note: This documentation is preliminary and is subject to change.
Converts a height map into a normal map.
Definition
Visual Basic .NET
Public Shared Sub ComputeNormalMap( _ ByVal texture As Texture, _ ByVal srcTexture As Texture, _ ByVal flags As NormalMap, _ ByVal channel As Channel, _ ByVal amplitude As Single _ )
System.Single. Constant value by which the height information is multiplied.
Remarks
This method computes the normal by using the central difference with a kernel size of 3x3. The (x,y,z) components of each normal are mapped to the (r,g,b) channels of the output texture. RGB channels in the destination contain biased (x,y,z) components of the normal.