Particle-Material (TGorillaParticleMaterialSource)
The TGorillaParticleMaterialSource (TGorillaParticleMaterial) is inherited from TGorillaDefaultMaterialSource, supports multiple light sources and enables texture atlas and point-sprite handling if activated: GORILLA_GLSL_DEFINE_USE_TEXTURE_ATLAS, GORILLA_GLSL_DEFINE_USE_POINTSPRITE
Depending on the material configuration it enables different rendering techniques:
Mode | UseTexture | IsTextureAtlas | Technique |
---|---|---|---|
OnlyColor | false | false | Renders each particle with the provided color information and without texturing |
Texturing | true | false | Renders each particle with the provided texture but without atlas mapping |
Atlas-Texturing | true | true | Renders each particle with the provided texture-atlas |