Hey so it seems to me that URP additional spotlights are not working in webgl if using pixel mode.
It works fine in the editor and in windows build.
Additionally if the mode is changed to vertex lit from pipeline settings then it works in webgl also.
Anyone know how to get it working in pixel mode? Vertex lit is odd according to our game.
This is a limitation of the WebGL spec, as far as I know.
I just checked even point lights are not working when they are pixel lit.
So does that mean all additional lights have to be vertex lit?
The vertex lit shows very rough lighting on the spheres and floor etc.
jukka_j
4
Does the limitation occur also if running against WebGL 2? (try disabling auto graphics API and only enabling WebGL 2 there, dropping WebGL 1)
Yes, I am using Web GL 2 , but unfortunately, Lighting experience is too bad. Pont light and spot light is not working.
Jukka is not specifically talking to you… as this is a 3 years old thread.
Can you explain what is not working? What version of Unity you are using? Which rendering pipeline?