Property | Type | Description | |
---|---|---|---|
_WrapEnabled | bool | ||
_bumpHeight | float |
Method | Description | |
---|---|---|
NormalMapRenderer ( ) : System |
Default constructor
|
|
Render ( ) : void |
Renders the noise map to the destination image.
|
Method | Description | |
---|---|---|
CalcNormalColor ( float nc, float nr, float nu, float bumpHeight ) : IColor |
Calculates the normal vector at a given point on the noise map. This method encodes the (x, y, z) components of the normal vector into the (red, green, blue) channels of the returned color. In order to represent the vector as a color, each coordinate of the normal is mapped from the -1.0 to 1.0 range to the 0 to 255 range. The bump height specifies the ratio of spatial resolution to elevation resolution. For example, if your noise map has a spatial resolution of 30 meters and an elevation resolution of one meter, set the bump height to 1.0 / 30.0. The spatial resolution and elevation resolution are determined by the application.
|