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

# fz_shdr_is_in_preview

Description

This function returns TRUE, if the current rendering is a small preview rendering in a dialog. It returns FALSE otherwise. This function can only be called from a shader's pre render or pixel function. This information can be used to make special adjustments to a shader's parameters, when rendered as a preview. For example, any world size dependant parameters may be scaled to fit into the preview size, which shows the world in a 1 x 1 unit cube.

Plugin Prototype

fzrt_boolean fz_shdr_is_in_preview(void)

Returns

TRUE if the current rendering is a small dialog preview rendering, FALSE otherwise.

Availability

5.0.0.0

Function Set

fz_shdr_fset

Defined in

fz_rzne_shdr_api.h