DisableMaterialLighting()

Syntax

DisableMaterialLighting(#Material, State)
Description
Enables or disables the dynamic #Material lighting. The object which will use this material will be not affected by a dynamic light, created with the CreateLight() function. Dynamic lighting is enabled by default, when a material is created.

Parameters

#Material The material to use.
State It can be one of the following value:
  #True : dynamic lighting is disabled.
  #False: dynamic lighting is enabled.

Return value

None.

Remarks

To get the current material lighting state, use GetMaterialAttribute().

Supported OS

All

<- CreateMaterial() - Material Index - FreeMaterial() ->