This is an old revision of the document!


Materials

Default-Material

The TGorillaDefaultMaterialSource (TGorillaDefaultMaterial) is the approach to centralize basic shader operations like vertex transformation, multiple light computation, shadow casting, normal mapping and much more.

The simple reason for that is, not to reinvent the basic functionality each time for new materials. Many materials need multiple lights, shadows and so one. Those operations also getting very complex in combination and its hard to keep them still efficient.

Because of that, the default material uses a node based memory structure to build shader source code. On rendering the source code will automatically be compiled and registered in GPU.

Read more about the default material: DefaultMaterial

Grass-Material

Water-Material

Read more about water material on documentation about Water

Runtime Material

Read more about usage of Runtime Materials at RuntimeMaterial

Next step:: Primitives