How do you build lighting for mobile preview?
So, if you switch the render settings to anything below shader model 5, the build button gets greyed out.
I'm using a scene where there's no dynamic lighting, all lighting are set to static. All directional lights. (only 2 on the map)
If I switch this to html5 mobile preview, the map turns dark and the "Lighting needs to be rebuilt (X unbuilt lighting)" red text alert is displayed on screen. It doesn't go away even if you build and deploy to a smartphone.
How do you build lighting if the build lighting button is greyed out?
asked Jan 26 '18 at 08:03 AM in Rendering
Thank you for the report. Unfortunately, this action is by default. While hovering over the "Build Lighting Only" in the drop down arrow next to "Build," it states, "Only precomputes lighting (All Levels). This action is not available while Play in Editor is active, or when previewing less than Shader Model 5." The resolution I found to this works quite fast.
The first time the rendering options is changed to Mobile HTML5 Preview, the project will take a while to compile all the shaders and everything in the project. However, this is the only time it will take a while (the next time the rendering options is changed from one option to another it should be pretty much an instant change). With this said, before the rendering options are changed to, for example, Mobile HTML5 Preview the lighting should be built in normal Shader Model 5. If you're adding and making changes to the project in Mobile HTML5 Preview, switch back to Shader Model 5 once ready and build the lighting, then return to Mobile HTML5 Preview as needed.
I hope this information finds you well. If there is anything that I can help you with please do not hesitate to reply.
answered Jan 26 '18 at 08:05 PM
Natalia Q ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here