formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Render Materials
Description
Finds a surface style that has a plain color
shader with a given rgb value.
If none is found, rmtl_match is returned as NULL.
Note: this routine only considers surface styles with
the plain color shader when running the RenderZone or RadioZity
version.
In the formZ build all surface styles are checked.
Colors are considered equal if the rgb components
are within 1/1000th of each other.
Plugin Prototype
fzrt_error_td fz_rmtl_find_by_rgb(
fzrt_int | windex, |
rgb, | |
rmtl_match ) |
Parameters
windex [Input]
project window index
rgb [Input]
color to match
rmtl_match [Result]
surface style
Returns
Error codes
Availability
5.0.0.0
Example Files
util_attr_rmtl.fsl
util_rmtl.fsl
Function Set
Defined in