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,

1 Answer

1

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; ?