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)
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.
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.
I have a similar problem. After build the game, the shadows going to be too dark. I solved by changing lighting source to color.
Check this at stackoverflow