BRender Tutorial Guide:6 Texture Mapping:Loading the Material

Loading the Material

The following code loads a material description from the material script file earth.mat and adds it to the registry:

	planet_material = BrFmtScriptMaterialLoad("earth.mat");
Note that the same result could have been achieved using the following code:

Storing a pointer to the loaded material in planet_material allows the programmer to dynamically access fields in the structure.

Generated with CERN WebMaker