Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    LightPoint Class

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

    A point light.

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

    [DataContract("LightPoint")]
    [Display("Point", null)]
    public class LightPoint : DirectLightBase, IDirectLight, IColorLight, ILight
    Name Description
    Constructors
    LightPoint()

    Initializes a new instance of the LightPoint class.

    Properties
    HasBoundingBox
    Radius

    Gets or sets the radius of influence of this light.

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

    Constructors


    LightPoint()

    Initializes a new instance of the LightPoint class.

    public LightPoint()
    | Improve this Doc View Source

    Properties


    HasBoundingBox

    public override bool HasBoundingBox { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    DirectLightBase.HasBoundingBox

    Radius

    Gets or sets the radius of influence of this light.

    [DataMember(10)]
    public float Radius { get; set; }
    Property Value
    Type Description
    System.Single

    The range.

    | Improve this Doc View Source

    Methods


    ComputeBounds(Vector3, Vector3)

    public override BoundingBox ComputeBounds(Vector3 positionWS, Vector3 directionWS)
    Parameters
    Type Name Description
    Vector3 positionWS
    Vector3 directionWS
    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