...
Note |
---|
Warning! There are currently two main restriction regarding Materials in Animaze:
|
...
Animaze materials can control the rendered surfaces' render queues. The basic concept is that we need to have a distinction between opaque surfaces and the transparent ones, as the transparent ones need to modulate the color of the previous previously rendered surfaces (the opaque ones). Having render queues brings more control to how the meshes are displayed.
...
Environment – drawn first. Commonly used for the skybox.
Opaque – opaque meshes are drawn front to back so we can leverage depth testing and have less overdraw.
Fur – fur meshes are very peculiar, they are have instanced meshes, where the first layer is opaque and the rest are transparent or blended. Meshes rendered through this queue are sorted back to front.
Alpha Test – rendered back to front, pixels under a certain alpha value are discarded. This is a more efficient way of adding transparent surfaces.
Blended – transparent meshes, rendered back to front.
Overlay – reserved for UI