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

# fz_shdr_ray_inside_solid

Description

This function can only be called inside the pixel callback function when implementing a plugin or script shader. It determines whether, during raytracing, the current ray is inside a solid material or not. This is usually the case, when the ray was spawned through a call to , and the ray has entered a transmissive surface. Depending on whether a ray is inside or outside a solid material, different shading calculations may be performed. For example, it may not be necessary to compute mirrored reflections inside a solid material, when shading a glass like material.

Plugin Prototype

fzrt_boolean fz_shdr_ray_inside_solid(void)

Returns

TRUE if the current ray is inside a solid material, FALSE otherwise.

Availability

5.0.0.0

See Also

Function Set

fz_shdr_fset

Defined in

fz_rzne_shdr_api.h