Torque Shader Engine DocumentationCVS Revision Label 0.1.x |
Materials are mapped on to objects and interiors through the script command "addMaterialMapping()". It maps the material name specified in a Material datablock to a texture name specified in the relevant art tool. (See materials.cs.) A sample list of mappings can be found in example/demo/data/materialMap.cs. If no mapping is specified then the texture will be rendered unlit (full ambient). The same material can be mapped to multiple textures.