Table of Contents

Class LightPoint

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

A point light.

[DataContract("LightPoint")]
[Display("Point", null)]
public class LightPoint : ColorLightBase, IDirectLight, IColorLight, ILight
Inheritance
LightPoint
Implements
Inherited Members

Constructors

LightPoint()

Initializes a new instance of the LightPoint class.

public LightPoint()

Properties

HasBoundingBox

Gets a value indicating whether this instance has a bounding box.

public bool HasBoundingBox { get; }

Property Value

bool

true if this instance has a bounding box; otherwise, false.

Radius

Gets or sets the radius of influence of this light.

[DataMember(10)]
public float Radius { get; set; }

Property Value

float

The range.

Shadow

Gets or sets the shadow.

[DataMember(200)]
public LightPointShadowMap Shadow { get; set; }

Property Value

LightPointShadowMap

The shadow.

Methods

ComputeBounds(Vector3, Vector3)

Computes the bounds of this light..

public BoundingBox ComputeBounds(Vector3 positionWS, Vector3 directionWS)

Parameters

positionWS Vector3
directionWS Vector3

Returns

BoundingBox

BoundingBox.

ComputeScreenCoverage(RenderView, Vector3, Vector3)

Computes the screen coverage of this light in pixel.

public float ComputeScreenCoverage(RenderView renderView, Vector3 position, Vector3 direction)

Parameters

renderView RenderView

The render view.

position Vector3

The position of the light in world space.

direction Vector3

The direction of the light in world space.

Returns

float

The largest screen coverage width or height size in pixels of this light.

Update(RenderLight)

public override bool Update(RenderLight light)

Parameters

light RenderLight

Returns

bool