We've been stuck on this lighting issue for our game for multiple working days now, and we could really use some help. This is our first game that we tried playing around with lighting/trying to bake it, so we aren't exactly sure what's wrong.
In editor, our WebGL (AirConsole) game looks fine lighting wise, but everything gets darkened once the game is exported for WebGL.
Here is how it is supposed to look vs Here is how it looks once exported
It looks like all reflections aren't being handled. The water reflections are black, the parts of the boat that are supposed to be shiny are dark, and the big barnacles in the background don't have that light shinniness in the exported version.
Our Setup:
World has 3 directional lights, all set to baked
Two scenes, but both use the same lighting settings
Thank you very much for any and all help
EDIT: It's been half-fixed. This is how it currently looks
Basically, I realized in the Lighting Settings Ambient GI was set to Realtime not Baked. I read that Realtime GI isn't supported in WebGl, so I changed that to Baked.
The water now reflects the light like it does in editor, and the boat is slightly lighter. It's still not as light as it's supposed to be (it really doesn't pop, and considering our players are four differently coloured boats, this darkness is still too hard to tell certain colours apart at a glance), but it's better than it was.
EDIT: Fully fixed!
/u/VIKING_JEW was correct. Changed all directional lighting to point lights that were baked, had to play with them to get a similar effect I liked, but now it works properly on export.
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Unity3D/com...