URP light fix


Even if I have released the game two weeks ago, there was one thing bugging me: According to URP, by default only be 9 lights can be active in a scene at the same time. Regardless of the time spend for light baking and setting the light’s render mode to “important” instead of “auto”, several lights turned off if they were not looked at by the player directly. The solution for this problem was to find the URP renderer I was actually using (which can be chosen in Edit > Project Settings > Quality and searched for in the project directory - I was using the URP-HighFidelity-Renderer) and change its Rendering Path from “Forward” to “Deferred”. With this setting there is no limitation of lights that can be seen from the main camera at the same time (see URP Universal Renderer settings). - This didn’t fix the problem completely, but at least a little. It’s also possible that the light generating process broke before it was completed, but I didn’t want to edit the game much after the deadline.

Files

DOOMedXmas.zip Play in browser
Jan 09, 2024

Leave a comment

Log in with itch.io to leave a comment.