Unity Bake Lights Partially Black

Asked 1 years ago, Updated 1 years ago, 321 views

We are creating a stage that Unity created using ProBuilder with multiple models.
The lights are "Realtime" and "Baked" respectively, and they are baked.
Build to WebGL and play with your browser

It works perfectly well when playing on the editor (Image 1)
However, when you build it and run it in your browser, some walls and ceilings turn black and the other walls become even brighter.(Image 2)

Also, immediately after the build, it appears similarly dark on the editor.(Image 3)
Click anywhere on the editor (activate Unity) to return.(Image 4)

·Until a few days ago, the browser worked fine.
·If you build without baking the light, it will appear the same on the editor and browser.
·The dark side seems to be the side that XYZ is facing in the negative direction.
·I have re-baked the lights and rebooted Unity and PC several times.
·If you build another scene (the light has been baked before), it will work without any problems, so there should be no problem with the build.
·However, when I built the writing again for another scene that was created in the same way, this darkening problem occurred.(Probably a light build problem?)
·Unity version is 2021.1.1 f1.

エディThere is no problem with the editor
 エディNo problem on editor

ブラウザThe wall is dark with a browser
 ブラウザThe wall is dark with a browser

ビルDark right after build

クリックClick to heal
 ④Click to heal

US>Setting Lights
Setting the light
Setting the light

unity3d

2022-10-07 01:00

1 Answers

I changed the Lighting setting from DirectionalMode to Non-Directional and it was resolved.


2022-10-07 01:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.