formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders
Description
Gets the value of the 3d shading normal associated with a pixel.
The shading normal uses the geometric surface normal as a base.
It is further adjusted by the smooth shading interpolation
algorithm. In other words, the shading normal represents
the surface normal direction as seen in a smooth shaded
rendering. It should be used for any calculations when
the surface appearance is considered.
Note, that this function only has a meaningful use when
called from a shader's pixel function. When called from
any other place, the resulting xyz value is undefined.
Plugin Prototype
void fz_shdr_get_world_shading_normal(
pnt ) |
Parameters
pnt [Result]
The current pixel's shading normal direction
Returns
none
Availability
5.0.0.0
Function Set
Defined in