LightShafts Class
Namespace: Stride.Rendering.ImagesAssembly: Stride.Rendering.dll
System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect → ImageEffect →
LightShafts
Derived from LightShafts:
[DataContract("LightShafts")]
public class LightShafts : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
| Name | Description | |
|---|---|---|
| Fields | ||
| CurrentLightShafts | Property key to access the current collection of System.Collections.Generic.List<T> from Tags. |
|
| Properties | ||
| BoundingVolumeBufferDownsampleLevel | The amount of time the resolution is lowered for the bounding volume buffer |
|
| LightBufferDownsampleLevel | The number of times the resolution is lowered for the light buffer |
|
| Methods | ||
| Collect(RenderContext) | ||
| Destroy() | ||
| Draw(RenderDrawContext, Texture, Texture) | ||
| DrawCore(RenderDrawContext) | ||
| InitializeCore() | ||
Fields
CurrentLightShafts
Property key to access the current collection of System.Collections.Generic.List<T> from Tags.
public static readonly PropertyKey<List<RenderLightShaft>> CurrentLightShafts
Field Value
| Type | Description |
|---|---|
| PropertyKey<System.Collections.Generic.List<RenderLightShaft>> |
Properties
BoundingVolumeBufferDownsampleLevel
The amount of time the resolution is lowered for the bounding volume buffer
[DataMemberRange(1, 64, 1, 1, 0)]
public int BoundingVolumeBufferDownsampleLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
LightBufferDownsampleLevel
The number of times the resolution is lowered for the light buffer
[DataMemberRange(1, 64, 1, 1, 0)]
public int LightBufferDownsampleLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Collect(RenderContext)
public void Collect(RenderContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderContext | context |
Destroy()
protected override void Destroy()
Overrides
Draw(RenderDrawContext, Texture, Texture)
public void Draw(RenderDrawContext drawContext, Texture inputDepthStencil, Texture output)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderDrawContext | drawContext | |
| Texture | inputDepthStencil | |
| Texture | output |
DrawCore(RenderDrawContext)
protected override void DrawCore(RenderDrawContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderDrawContext | context |
Overrides
InitializeCore()
protected override void InitializeCore()