formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders

fz_shdr_get_world_shading_normal

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(

fz_xyz_td*

pnt )

Parameters

pnt [Result]

The current pixel's shading normal direction

Returns

none

Availability

5.0.0.0

Function Set

fz_shdr_fset


Defined in

fz_rzne_shdr_api.h