Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    DirectLightBase Class

    Namespace: Stride.Rendering.Lights
    Assembly: Stride.Rendering.dll

    Base implementation of IDirectLight.

    System.Object → ColorLightBase → DirectLightBase
    Derived from DirectLightBase: LightDirectional LightPoint LightSpot

    [DataContract]
    public abstract class DirectLightBase : ColorLightBase, IDirectLight, IColorLight, ILight
    Name Description
    Properties
    HasBoundingBox
    Shadow

    Gets or sets the shadow.

    Methods
    ComputeBounds(Vector3, Vector3)
    ComputeScreenCoverage(RenderView, Vector3, Vector3)
    | Improve this Doc View Source

    Properties


    HasBoundingBox

    public abstract bool HasBoundingBox { get; }
    Property Value
    Type Description
    System.Boolean

    Shadow

    Gets or sets the shadow.

    [DataMember(200)]
    public LightShadowMap Shadow { get; protected set; }
    Property Value
    Type Description
    LightShadowMap

    The shadow.

    | Improve this Doc View Source

    Methods


    ComputeBounds(Vector3, Vector3)

    public abstract BoundingBox ComputeBounds(Vector3 position, Vector3 direction)
    Parameters
    Type Name Description
    Vector3 position
    Vector3 direction
    Returns
    Type Description
    BoundingBox

    ComputeScreenCoverage(RenderView, Vector3, Vector3)

    public abstract float ComputeScreenCoverage(RenderView renderView, Vector3 position, Vector3 direction)
    Parameters
    Type Name Description
    RenderView renderView
    Vector3 position
    Vector3 direction
    Returns
    Type Description
    System.Single

    Inherited Members

    ColorLightBase.Color
    ColorLightBase.ComputeColor(ColorSpace, Single)
    ColorLightBase.Update(RenderLight)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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