formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders
Description
Gets the normalized vector, representing the view
direction, from the eye point, towards the current
pixel. For a perspective and panoramic rendering, this
direction is different for each pixel. For the other view types,
this direction is the same for each pixel.
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_view_dir(
view_dir ) |
Parameters
view_dir [Result]
The current pixel's view direction
Returns
none
Availability
5.0.0.0
Function Set
Defined in