formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Render Materials
Description
Gets the map shader of a surface style. For example, the ambient map shader of a surface style can be retrieved with this function. If the reflection shader of the given surface style does not use the requested reflection map, the map_shader argument is returned as NULL. For example, if this function would be used to retrieve the transmission map of a surface style that uses the Matte reflection shader, map_shdr would be returned as NULL. This function is intended to be used to retrieve the map shaders instead of fz_shdr_ptr_get_parm.
Plugin Prototype
fzrt_error_td fz_rmtl_get_refl_map_shader(
fzrt_int | windex, |
rmtl_ptr, | |
which_map, | |
map_shdr ) |
Parameters
windex [Input]
project window index
rmtl_ptr [Input]
the surface style from which to get the map shader
which_map [Input]
the identifier for the particular map shader
map_shdr [Result]
the requested map shader, or NULL if the reflection shader does not use the requested map
Returns
Error codes
Availability
5.5.0.0
Example Files
Function Set
Defined in