I was wondering if its possible to access the properties of lights in the scene within a ShaderMaterial. I'm working on a toon shader in GLSL and wanted to use the lights in the same manner as the default shaders.
Is there any special mechanism to do this or does one just declare the uniforms using the same names as the built in shaders?
I was wondering if its possible to access the properties of lights in the scene within a ShaderMaterial. I'm working on a toon shader in GLSL and wanted to use the lights in the same manner as the default shaders.
Is there any special mechanism to do this or does one just declare the uniforms using the same names as the built in shaders?