SelectMaterialState Data Member Function

Sets the device state to render using a <Material> defined by Material_Flags options and alpha-blending opacity. The new <Material> state inherits current texture state, if the flags do not include MF_Solid, and the current program, if the flags do not include MF_InheritProgram. This refers to the Material_Flags enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.

Prototype

int32 SelectMaterialState( int32 Flags, double Opacity )

Parameters

Parameter Type Parameter Name Documentation
int32FlagsA set of Material_Flags options indicating the rendering state. This refers to the Material_Flags enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
doubleOpacityThe alpha-blending weight for geometry rendered using the active <Material>. One is opaque, zero is completely transparent, and intermediate values blend between the current colors in the image and the newly rendered geometry.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.