AddMaterialLayer()

语法

AddMaterialLayer(#Material, TextureID [, Mode])
概要
Adds a new layer to the material and put the specified texture in it.

参数

#Material The material to use.
TextureID The texture to add. A valid 'TextureID' can be easily obtained with TextureID().
Mode (optional) It can be one of the following value:
  #PB_Material_Add        : Performs a pixel 'Add' operation over previous layer (black color is like transparent)
  #PB_Material_Replace    : Performs a pixel 'Replace' operation over previous layer
  #PB_Material_AlphaBlend : Use the AlphaChannel layer of the texture (should be a TGA or PNG one) and blend it with the previous layer
  #PB_Material_Modulate   : Performs a pixel 'Modulate' operation over previous layer

返回值

无.

参阅

RemoveMaterialLayer()

已支持操作系统

所有

Material Index - CopyMaterial() ->