Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    LightDirectional Class

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

    A directional light.

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

    [DataContract("LightDirectional")]
    [Display("Directional", null)]
    public class LightDirectional : DirectLightBase, IDirectLight, IColorLight, ILight
    Name Description
    Constructors
    LightDirectional()
    Properties
    HasBoundingBox
    Methods
    ComputeBounds(Vector3, Vector3)
    ComputeScreenCoverage(RenderView, Vector3, Vector3)
    Update(RenderLight)
    | Improve this Doc View Source

    Constructors


    LightDirectional()

    public LightDirectional()
    | Improve this Doc View Source

    Properties


    HasBoundingBox

    public override bool HasBoundingBox { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    DirectLightBase.HasBoundingBox
    | Improve this Doc View Source

    Methods


    ComputeBounds(Vector3, Vector3)

    public override BoundingBox ComputeBounds(Vector3 position, Vector3 direction)
    Parameters
    Type Name Description
    Vector3 position
    Vector3 direction
    Returns
    Type Description
    BoundingBox
    Overrides
    DirectLightBase.ComputeBounds(Vector3, Vector3)

    ComputeScreenCoverage(RenderView, Vector3, Vector3)

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

    Update(RenderLight)

    public override bool Update(RenderLight light)
    Parameters
    Type Name Description
    RenderLight light
    Returns
    Type Description
    System.Boolean
    Overrides
    ColorLightBase.Update(RenderLight)

    Inherited Members

    DirectLightBase.Shadow
    ColorLightBase.Color
    ColorLightBase.ComputeColor(ColorSpace, Single)

    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