Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    Lights don't cast shadows

    If you've enabled shadows on a light in your scene, but it isn't casting shadows, make sure you have enough space in the shadow atlas. You might need to reduce the size of the shadows in the properties of your light components to create room.

    For more information about shadows and the shadow atlas, see Graphics - Shadows.

    Shadow atlas comparison

    Size: 2x Size: 1x
    FPS scene shadow map FPS scene shadow map
    This light source uses the entirety of the shadow atlas. This means other lights won't cast shadows, as there's no room left in the atlas. This light source uses one quarter of the shadow atlas. The rest can be allocated to other light sources.

    Reduce the shadow size

    1. In the Scene Editor, select an entity with a light that casts a shadow.

    2. In the Light component properties, under Shadow > Size, reduce the size of the shadow using the drop-down menu.

      media/DirectionalLightProperties.png

      Alternatively, disable shadows on the light entirely by clearing the Shadows checkbox.

    Repeat these steps for as many light entities as you need to create space in the shadow atlas.

    See also

    • Graphics — Shadows
    • Graphics — Directional lights
    • Improve this Doc
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation