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

fz_shdr_raytrace_depth

Description

Returns whether or not the current call to the shader's shade pixel function is using a ray that has been reflected or refracted. If neither, the ray originates from the eye.

Plugin Prototype

fzrt_error_td fz_shdr_raytrace_depth(

fzrt_boolean*

is_refl,

fzrt_boolean*

is_refr )

Parameters

is_refl [Result, Optional]

Whether or not the ray has been reflected.

is_refr [Result, Optional]

Whether or not the ray has been refracted.

Returns

Error codes.

Availability

5.0.0.0

Function Set

fz_shdr_fset


Defined in

fz_rzne_shdr_api.h