
Glitter Flake Material


1. Random Normals: By generating random normal directions, each particle or point on the surface will have different lighting reactions. This randomness in normals helps create a dynamic sparkling effect, making the lighting and reflections change in a way that gives the material an irregular, flickering appearance.

2. Lighting Calculations (Main Light & Other Lights): The material calculates the lighting influence from the main light source and additional other lights, determining how the surface reflects light. Reflecting the lighting effects on the surface results in highlights and shadows, which is particularly important for glossy or reflective materials, making the sparkle material appear more dimensional and shiny.


3. Reflections: Reflection probes are used to simulate the surrounding environment's reflections. By sampling the reflection cubemap, the sparkle material can reflect the environment, adding a dynamic reflection effect based on the lighting conditions, making the material look more realistic.

4. Albedo: The albedo map typically determines the base color of the material, which can be controlled through texture mapping or color operations. The sparkle’s color and texture will affect the overall look, especially after multiple lighting calculations, as the texture may alter the material’s appearance.
