- Home /
Shadows much darker in build than in editor.
The shadows that show in my build(right part of image) are much darker than in the editor(left part of image).
A few things I think may be the issue but i'm not sure:
Using a mixed directional light. Is there a better way? I need baked shadows for level details, but also want realtime shadows for my player and enemies, etc. (this was a hassle on it's own)
Using SteamVR plugin. (though I have tried every build option combination I can think of despite the plugin recommending I switch back to it's defaults)
Baking lights manually instead of automatic.
Building with force full screen (tried many build combinations)
About baked shadows, you can bake shadows only for static objects
The shadows are baked on the static objects (terrain, boulders, etc.) in my scene. I am using mixed lighting because I want the baking from the directional light but also real-time shadows from non-static objects. That part all works fine, I understand it. The issue is that all shadows are much darker after I build than they are in the editor.
I had the same problem with baked lighting when i loadscene("my scene ") , try to bake lightmap again
Answer by tayloreichhorst · Dec 21, 2016 at 02:58 PM
I found what I believe is the answer to my problem. I say that with a tad bit of uncertainty because I tried a lot of things at once!
Basically it comes down to my own idiocy, which it usually does.
I had been testing out different lighting methods, one of those included making duplicates of my clouds (which lie between the directional light) and setting them to shadows only. I had since decided against going with that lighting method but forgot to delete the clouds!!!!
Deleted them, all is fine.
My theory for why it worked in non-VR and then was dark in VR is that VR is actually rendering the scene for each eye, so it's somehow rendering the shadows different when there is an overlap in objects. In non-VR it was somehow ignoring one of them? That's my best guess.
Answer by arthymon · Dec 18, 2016 at 06:32 PM
I'm not entirely sure, but probably because you need to bake your lightmaps , you can do that in window -> lighting . I had the same problem , when i was using SceneManager to load my level.
Light is baked fine. New progress though. When I build the game and play it with my Vive, the realitime shadows are much darker, when i play without my Vive, bam, everything is good.
Not sure how to fix that.
Answer by alirazabrame · Oct 09, 2021 at 04:30 PM
I have a similar problem. After build the game, the shadows going to be too dark. I solved by changing lighting source to color.