AddMaterialLayer()
Syntax
Result = AddMaterialLayer(#Material, TextureID [, Mode])Description
Adds a new layer to the #Material and put the specified texture in it. A valid 'TextureID' can be easily obtained with the TextureID() command.
'Mode' is an optional parameter and can take one of the following value:#PB_Material_Add : Performs a pîxel 'Add' operation over previous layer (black color is like transparent) #PB_Material_Replace : Performs a pîxel '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 pîxel 'Modulate' operation over previous layer
Supported OS
Windows, Linux