Table of Contents

Class LightShafts

Namespace
Stride.Rendering.Images
Assembly
Stride.Rendering.dll
[DataContract("LightShafts")]
public class LightShafts : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Inheritance
object
LightShafts
Implements
Inherited Members
Extension Methods

Fields

CurrentLightShafts

Property key to access the current collection of List<T> from Tags.

public static readonly PropertyKey<List<RenderLightShaft>> CurrentLightShafts

Field Value

PropertyKey<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

int

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

int

Methods

Collect(RenderContext)

public void Collect(RenderContext context)

Parameters

context RenderContext

Destroy()

Disposes the object's resources.

protected override void Destroy()

Remarks

Override in a derived class to implement disposal logic specific to it.

This method is automatically called whenever a call to Dispose() (or to Release()) has decreased the internal reference count to zero, meaning no other objects (hopefully) hold a reference to this one and its resources can be safely released.

Draw(RenderDrawContext, Texture, Texture)

public void Draw(RenderDrawContext drawContext, Texture inputDepthStencil, Texture output)

Parameters

drawContext RenderDrawContext
inputDepthStencil Texture
output Texture

DrawCore(RenderDrawContext)

Main drawing method for this renderer that must be implemented.

protected override void DrawCore(RenderDrawContext context)

Parameters

context RenderDrawContext

The context.

InitializeCore()

protected override void InitializeCore()