- Home /
Lightmapped object are black if shadows are on (ios)
Hello
My game screen is a street view with some object are static (road, buildings) and some are dynamic (vehicles). Camera and lights positions are fixed. All materials use "Mobile Default" shader.
Static objects have baked lightmaps on them. So I want my dynamic object to cast shadows onto static, and static also shade dynamic. Since the camera and lights are fixed, I managed to do this with a combination of layers, "shadow only" objects and two cameras. Top-left image is how it should look and looks on android.
However, on ios I see bottom-left image - only dynamic object, rendered with the second camera (first one renders static part of the scene). But if I set Light.Shadows to None, the picture became like on top-right image - everything is ok except for dynamic shadows.
This happens on real ios device only, in the simulator there is now such bug.