- Home /
HDRP, Lighting Brighter Standalone Build vs Editor
I'm having a very strange issue with my project using HDRP. The problem is that the game gets significantly brighter when running the standalone player compared to in the editor as shown below:
I have no idea what is causing this. I am not using any baked lighting in my game either. Here are my settings of Post Processing: and Does anyone have any ideas as to what the problem could be? Maybe I have something miss-configured.
Answer by Namey5 · Mar 07, 2020 at 01:20 AM
The first image doesn't have ambient lighting applied, whilst the second one does. Regardless of whether or not you are using lightmaps, ambient lighting still needs to be baked initially to show up. If you want the image to look like the second, run a quick bake in the inspector and the lighting should update. If you want it to look more like the first, you can set the ambient lighting intensity to 0 in the lighting settings.
So I found that the "Indirect Diffuse Intenisy" on the Indirectly Lighting Controller allows me to turn off the ambient lighting for the built game. However none of these changes get reflected in the editor. So it is impossible for me to utilize indirect since I can't see it's effects in the editor. Baking does nothing, probably because there is nothing in the scene until runtime. Everything is procedural. This should be a sufficient fix for now.
It would appear HDRP does ambient differently than I expected. $$anonymous$$ore traditionally, ambient lighting defaults to a prebaked SH of the skybox so that you don't need any objects to get ambient lighting, but I guess because HDRP does sky through volumes that would no longer work. You do have ambient set to dynamic in the sky settings though, so I'm not sure why it wouldn't update in editor. With the old ambient system, there was a bug where the ambient lighting and reflections would wipe their baked data when entering playmode, so I would say that might still be happening.
It used to work in the way I would expect in previous versions of HDRP where it would correctly take ambient lighting from the sky. But since HDRP 7 that no longer works. No idea what has changed or if it's currently broken.
Your answer
Follow this Question
Related Questions
(help) separated shadows for aligned objects 0 Answers
Deferred realtime shadows appearing in editor and game view but not when played 0 Answers
Shadows look bad or not show at all 0 Answers
Game Breaking Shadow Rendering Issue 0 Answers
Spotlight Soft shadows not rendering when close to object. 1 Answer