Materials

More...

Classes:

class

Material object which provides more control over surface properties.

Functions

void
addMaterialMapping(string texName, string matName)

Maps the given texture to the given material.

void

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

void
getMaterialInstances(BaseMaterialDefinition target, GuiTreeViewCtrl tree)

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

string
getMaterialMapping(string texName)

Returns the name of the material mapped to this texture.

void

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

Variables

int

Global variable defining the default anisotropy value.

Detailed Description

Functions

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.

dumpMaterialInstances()

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

getMaterialInstances(BaseMaterialDefinition target, GuiTreeViewCtrl tree)

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

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

reInitMaterials()

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

Variables

int 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.