LightPoint Class
Namespace: Stride.Rendering.LightsAssembly: Stride.Rendering.dll
A point light.
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) | ||
Constructors
LightPoint()
Initializes a new instance of the LightPoint class.
public LightPoint()
Properties
HasBoundingBox
public override bool HasBoundingBox { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
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. |
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
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
Update(RenderLight)
public override bool Update(RenderLight light)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderLight | light |
Returns
| Type | Description |
|---|---|
| System.Boolean |