Lighting Shader Format
The lighting format is a separate set of uniforms used to handle the lighting system. Implementing the lighting format in your shader allows you to use the Graphics#renderLights() method.
Vertex
For the vertex format it is required to have the modelLightView matrix. See the standard and the voxel for the uniform names (and a layout).
Note: That uniform is not set by the Graphics#renderLights() method and is only needed if not using a custom format.
Fragment
The following structs are needed by the lighting system:
Then the following uniforms are required:
Last updated