Torque 3D - Script Manual: Materials

TorqueScript

Main   Class List   Namespace List   Online

Materials
[GFX]

Classes, structures, functions, and variables related to Torque 3D's material system. More...

Classes

class  CustomMaterial
 Material object which provides more control over surface properties. More...

Functions

void addMaterialMapping (string texName, string matName)
 Maps the given texture to the given material.
string getMaterialMapping (string texName)
 Returns the name of the material mapped to this texture.

Variables

int $pref::Video::defaultAnisotropy
 Global variable defining the default anisotropy value.
void dumpMaterialInstances
 Dumps a formatted list of currently allocated material instances to the console.
void reInitMaterials
 Flushes all procedural shaders and re-initializes all active material instances.

Detailed Description

Classes, structures, functions, and variables related to Torque 3D's material system.


Function Documentation

void addMaterialMapping ( string  texName,
string  matName 
)

Maps the given texture to the given material.

Generates a console warning before overwriting.

Material maps are used by terrain and interiors for triggering effects when an object moves onto a terrain block or interior surface using the associated texture.

string getMaterialMapping ( string  texName  ) 

Returns the name of the material mapped to this texture.

If no materials are found, an empty string is returned.

Parameters:
texName Name of the texture

Variable Documentation

int $pref::Video::defaultAnisotropy

Global variable defining the default anisotropy value.

Controls the default anisotropic texture filtering level for all materials, including the terrain. This value can be changed at runtime to see its affect without reloading.

Dumps a formatted list of currently allocated material instances to the console.

Flushes all procedural shaders and re-initializes all active material instances.



Copyright © GarageGames, LLC. All Rights Reserved.