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

fz_shdr_get_world_geom_normal

Description

Gets the value of the 3d geometric normal associated with a pixel. This normal direction is the same everywhere on a polygon. Unlike the shading normal returned by the geometric normal is not adjusted by the smooth shading algorithm. It should be used when calculations need to be performed with the true geometry.
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_geom_normal(

fz_xyz_td*

pnt )

Parameters

pnt [Result]

The current pixel's geometric normal direction

Returns

none

Availability

5.0.0.0

Function Set

fz_shdr_fset


Defined in

fz_rzne_shdr_api.h