formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Render Materials

# fz_shdr_ptr_rmtl_from_shdr_ptr

Description

Gets the surface style ( fz_rmtl_ptr) to which a given shader belongs. The shader may be a color, reflection, transparency or bump shader. Reflection map and environment shaders of a surface style are not considererd. If the shader is not part of a surface style, NULL is return for rmtl_ptr and an error code is returne dby the function.

Plugin Prototype

fzrt_error_td fz_shdr_ptr_rmtl_from_shdr_ptr(

fzrt_int | windex,
fz_shdr_ptr | shdr_ptr,
fz_rmtl_ptr * | rmtl_ptr )

Parameters

windex [Input]

project window index

shdr_ptr [Input]

the shader for which to get the surface style

rmtl_ptr [Result]

the surface style, which contains the given shader

Returns

Error codes.

Availability

6.0.0.2

Function Set

fz_rmtl_fset

Defined in

fz_rmtl_api.h