Lighting Shader Format
Last updated
Was this helpful?
Last updated
Was this helpful?
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 method.
For the vertex format it is required to have the modelLightView matrix. See the and the 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.
The following structs are needed by the lighting system:
Then the following uniforms are required: