DisableMaterialLighting()

Syntax

DisableMaterialLighting(#Material, State)
Description
Enables or disables the dynamic #Material lighting. This means than 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. 'State' can take the following values:
  1: Dynamic lighting is disabled
  0: Dynamic lighting is enabled

Supported OS

All

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