DisableMaterialLighting()

语法

DisableMaterialLighting(#Material, State)
概要
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.

参数

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

返回值

无.

Remarks

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

已支持操作系统

所有

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