Hi all,
I used to bake my lightmaps for my environment within a 3D modelling app and apply them within my Unity project via a basic Lightmap shader (Diffuse + Lightmap). Now I stumpled upon the integrated Beast lightmapping in Unity which would serve me better as I like to manage all my objects within Unity.
Problem now is:
I have trees which consists of 2 materials / textures which I have defined as having "Nature/Soft Occlusion Bark" and "Nature/Soft Occlusion Leaves". My floor is having a normal diffuse shader.
Floor as well as trees are marked as "static".
I will then select my directional light within the scene and open the lightmapping window and press on "Bake" which would generate lightmaps for the full scene.
Once the process of baking is finished, I will have a nice shadow on my floor, generated by the static trees, however the trees have disappeared. Further investigation reveals that the objects are still there, but the texture is transparent.
If I change the shader of the trees to anything other than Nature/Soft Occlusion the textures are visible again.
Is this a bug with the shaders in U3 or am I missing something during this process. To add, I also played around with the "Generate Lightmap UVs" during model import but it does not seem to make any difference.
Thanks for any help on this one.
Kind regards, Ron.