IDirectLight Interface
Namespace: Stride.Rendering.LightsAssembly: Stride.Rendering.dll
Base interface for all direct lights.
public interface IDirectLight : IColorLight, ILight
Name | Description | |
---|---|---|
Properties | ||
HasBoundingBox | Gets a value indicating whether this instance has a bounding box. |
|
Shadow | Gets or sets the shadow. |
|
Methods | ||
ComputeBounds(Vector3, Vector3) | Computes the bounds of this light.. |
|
ComputeScreenCoverage(RenderView, Vector3, Vector3) | Computes the screen coverage of this light in pixel. |
Properties
HasBoundingBox
Gets a value indicating whether this instance has a bounding box.
bool HasBoundingBox { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Shadow
Gets or sets the shadow.
LightShadowMap Shadow { get; }
Property Value
Type | Description |
---|---|
LightShadowMap | The shadow. |
Methods
ComputeBounds(Vector3, Vector3)
Computes the bounds of this light..
BoundingBox ComputeBounds(Vector3 position, Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position. |
Vector3 | direction | The direction. |
Returns
Type | Description |
---|---|
BoundingBox | BoundingBox. |
ComputeScreenCoverage(RenderView, Vector3, Vector3)
Computes the screen coverage of this light in pixel.
float ComputeScreenCoverage(RenderView renderView, Vector3 position, Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
RenderView | renderView | The render view. |
Vector3 | position | The position of the light in world space. |
Vector3 | direction | The direction of the light in world space. |
Returns
Type | Description |
---|---|
System.Single | The largest screen coverage width or height size in pixels of this light. |