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

fz_shdr_get_dist_eye_world_pnt

Description

Gets the distance from the eye point to the 3d world of the current pixel. This function is useful when calculating depth effects, which are based on the pixel depth.
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

fzrt_int fz_shdr_get_dist_eye_world_pnt(

double*

dist )

Parameters

dist [Result]

The current pixel's distance from the eye point

Returns

none

Availability

5.0.0.0

Function Set

fz_shdr_fset


Defined in

fz_rzne_shdr_api.h