Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    Spot lights

    Beginner Designer Artist

    Spot lights produce a cone of light in a specific direction. They're useful for simulating light from objects such as lampposts and flashlights. They cast shadows. You can control them with scripts or animation to create dramatic lighting effects.

    media/SpotLightOverview.png

    The Scene Editor shows the position of the spot light with the following icon:

    media/SpotLight.png

    Once selected, the gizmo of the spot light displays its main direction, range and the outer cone:

    media/SpotLightSelected.png

    Properties

    media/SpotLightProperties.png

    Property Description
    Color The color of the light (RGB)
    Range The range in world units. Beyond the this range, the light doesn't affect models.
    Angle Inner The inner angle of the spot cone where the light intensity influence is at one
    Angle Outer The outer angle of the spot cone where the light intensity influence is zero
    Shadows


    Cast shadows



    Filter: Produces soft shadows instead of hard shadows via PCF (Percentage Closer Filtering)



    Size: The size of texture to use for shadowing mapping. Larger textures produce better shadows edges, but are much more costly. For more information, see Shadows



    For spot lights, the default value is medium, as a spot light has usually a medium visual impact


    Bias Parameters


    These parameters are used to avoid some artifacts of the shadow map technique.



    Depth Bias: The amount of depth to add to the sampling depth to avoid shadow acne



    Normal Offset Scale: A factor multiplied by the depth bias toward the normal


    Intensity The intensity of the light. The color is multiplied by this value before being sent to the shader. Note: negative values produce darkness and have unpredictable effects
    Culling Mask Defines which entity groups are affected by this light. By default, all groups are affected

    See also

    • Add a light
    • Point lights
    • Ambient lights
    • Directional lights
    • Light shafts
    • Skybox lights
    • Light probes
    • Shadows
    • Improve this Doc
    In This Article

    Back to top

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