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

# fz_shdr_set_specular_parm

Description

This function can only be called inside the set_parameters callback function when implementing a plugin or script reflection shader. It declares the standard specular reflection parameter. No further action needs to be taken by a plugin or script shader. formZ will automatically create the title, text field, map menu and options button.
In the pixel callback function the current value of the specular reflection parameters can be retrieved via the call fz_shdr_get_specular_factor(&val) and (&roughness).

Plugin Prototype

void fz_shdr_set_specular_parm(

double | spec_val,
double | roughness )

Parameters

spec_val [Input]

The default specular factor.

roughness [Input]

The default specular roughness.

Returns

none

Availability

5.0.0.0

See Also

fz_shdr_get_specular_factor,

Function Set

fz_shdr_fset

Defined in

fz_rzne_shdr_api.h