- Home /
How to make directional lights affect lightmaps?
I've baked AO using beast inside Unity3D, simply by removing all the lights and then baking objects. Now the problem is when I add a directional light to the scene all the lightmap baked objects does not receive the light. Is there any way to fix this issue?
cheers,
Answer by kou · Apr 24, 2013 at 05:49 PM
basically, I opened all .exr files generated from beast and change them from 32-bit to 16-bit in photoshop and applied them as texture, then cleared the lightmap data. now the objects with ao textures receive the light perfectly light any other objects. it's important to change from 32 to 16 bit and save as psd otherwise they seem to have a very bad quality. and also need to apply the tiling and offset data from lightmap settings into the material containing the ao texture.
Did you get the tiling and offset with sampler2D unity_Lightmap; float4 unity_LightmapST; ?
Your answer
Follow this Question
Related Questions
How to bake emissive objects into lightmap? 1 Answer
lightbake one object to fix lighting bug ... 0 Answers
How do I prevent the Ambient Light from influencing lightmap bakes? 1 Answer
Switch Lightmaps 2 Answers
Remove Temp/Beast folder 0 Answers