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

# fz_shdr_ptr_get_num_parm

Description

Gets the number of parameters in a shader. The number of parameters is the same as the parameters shown in the respective dialogs.
For reflection shaders, each reflection map counts as one parameter.
For texture map based shaders, the # of parameters is :
Color map : 12
Transparency map : 15
Bump map : 13
Background map : 4
Environment map : 7
Ambient, diffuse, specular, mirror, transmission, glow map : 14
A detail list of the parameters for texture map based shaders is given with the description of the function fz_shdr_ptr_get_parm.

Plugin Prototype

fzrt_error_td fz_shdr_ptr_get_num_parm(

fzrt_int | windex,
fz_shdr_ptr | shdr,
fzrt_int * | num_param )

Parameters

windex [Input]

project window index

shdr [Input]

shader

num_param [Result]

number of parameters

Returns

Error codes

Availability

5.0.0.0

Example Files

util_attr_rmtl.fsl
util_rmtl.fsl

Function Set

fz_rmtl_fset

Defined in

fz_rmtl_api.h