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

fz_shdr_get_view_dir

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(

fz_xyz_td*

view_dir )

Parameters

view_dir [Result]

The current pixel's view direction

Returns

none

Availability

5.0.0.0

Function Set

fz_shdr_fset


Defined in

fz_rzne_shdr_api.h