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

fz_shdr_get_world_pnt

Description

Gets the value of the 3d world coordinate associated with a pixel. Unlike fz_shdr_get_tspace_pnt, the xyz value returned by this function is not affected by the texture map control attribute of an object.
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_pnt(

fz_xyz_td*

pnt )

Parameters

pnt [Result]

The current pixel's 3d world coordinate

Returns

none

Availability

5.0.0.0

Function Set

fz_shdr_fset


Defined in

fz_rzne_shdr_api.h