Sunday, April 15, 2012

Use background Shadow problem With Physical Sun and Sky

Issue

When you apply a Use Background shader to a surface, the Physical Sun does not cast shadows on the surface.

Solution

To cast the shadows, please do the following:
    1. Assign the Use Background shader to a surface.
    2. In the Attribute Editor for the Use Background shader, turn off reflection.
    3. Create a new Directional Light. You won't get the shadows with the default sky sun light. Put the new Directional Light above the original sun light and match the rotation of the original sun light.
    4. In the Attribute Editor for the new Directional Light, set the intensity to .3 and turn on ray traced shadows.
    5. Duplicate the new Directional Light, set its intensity to -.3, and turn off ray trace shadows.
      The two directional lights cancel each other out, so that the default sun light controls the amount of light in the scene.
Now shadows will be cast on the surface.

No comments:

Post a Comment