Skip to content
Snippets Groups Projects
Commit daa3d1db authored by Alexander Rose's avatar Alexander Rose
Browse files

handle zero light count

parent 5490d5ce
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,10 @@ ...@@ -8,8 +8,10 @@
*/ */
export const light_frag_params = ` export const light_frag_params = `
#if dLightCount != 0
uniform vec3 uLightDirection[dLightCount]; uniform vec3 uLightDirection[dLightCount];
uniform vec3 uLightColor[dLightCount]; uniform vec3 uLightColor[dLightCount];
#endif
uniform vec3 uAmbientColor; uniform vec3 uAmbientColor;
struct PhysicalMaterial { struct PhysicalMaterial {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment