material .texture .set  (  MaterialObjectID ,  TextureChannel ,  BitmapObjectID  )  
                                     
Description :

This instruction sets the bitmap to use in a specified texture channel of a material.

Parameters :

  • ObjectID of the material.
  • Texture channel to assign :
    MATERIAL_DIFFUSETEXTURE : Plain bitmap is used.
    MATERIAL_OPACITYTEXTURE : Transparent (perfect transparency) bitmap is used.
    MATERIAL_REFLECTTEXTURE : Plain bitmap is used. It will be sphere-mapped and modulated with the diffuse color of the polygon.
  • ObjectID of the bitmap to be assigned. When this parameter is NULL, the instruction deactivates the specified texture channel.

Examples :