Materials

A core feature of Gorilla3D is a set of standard materials for easy and quick usage in your project.

Since version 0.8+, the most materials are inherited from the node based TGorillaDefaultMaterialSource for comfortable shader code reusage.

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: TGorillaDefaultMaterialSource

Materials