ForwardLightingRenderFeature Class
Namespace: Stride.Rendering.LightsAssembly: Stride.Rendering.dll
Compute lighting shaders and data.
public class ForwardLightingRenderFeature : SubRenderFeature, IComponent, IReferencable, ICollectorHolder, IGraphicsRendererCore, IDisposable
Name | Description | |
---|---|---|
Fields | ||
CurrentLights | Property key to access the current collection of |
|
Properties | ||
LightRenderers | ||
ShadowMapRenderer | ||
Methods | ||
Collect() | ||
Destroy() | ||
Draw(RenderDrawContext, RenderView, RenderViewStage) | ||
Extract() | Extract data from entities, should be as fast as possible to not block simulation loop. It should be mostly copies, and the actual processing should be part of Prepare(). |
|
Flush(RenderDrawContext) | Releases temporary resources and cleans the state. Should be called once after all Draw(RenderDrawContext, RenderView, RenderViewStage) calls have finished. |
|
InitializeCore() | ||
OnRenderSystemChanged() | ||
Prepare(RenderDrawContext) | Performs most of the work (computation and resource preparation). Later game simulation might be running during that step. |
|
PrepareEffectPermutations(RenderDrawContext) | Perform effect permutations, before Prepare(RenderDrawContext). |
|
Unload() |
Fields
CurrentLights
Property key to access the current collection of
public static readonly PropertyKey<RenderLightCollection> CurrentLights
Field Value
Type | Description |
---|---|
PropertyKey<RenderLightCollection> |
Properties
LightRenderers
[DataMember]
public TrackingCollection<LightGroupRendererBase> LightRenderers { get; }
Property Value
Type | Description |
---|---|
TrackingCollection<LightGroupRendererBase> |
ShadowMapRenderer
[DataMember]
public IShadowMapRenderer ShadowMapRenderer { get; set; }
Property Value
Type | Description |
---|---|
IShadowMapRenderer |
Methods
Collect()
public override void Collect()
Overrides
Destroy()
protected override void Destroy()
Overrides
Draw(RenderDrawContext, RenderView, RenderViewStage)
public override void Draw(RenderDrawContext context, RenderView renderView, RenderViewStage renderViewStage)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | context | |
RenderView | renderView | |
RenderViewStage | renderViewStage |
Overrides
Extract()
Extract data from entities, should be as fast as possible to not block simulation loop. It should be mostly copies, and the actual processing should be part of Prepare().
public override void Extract()
Overrides
Flush(RenderDrawContext)
Releases temporary resources and cleans the state. Should be called once after all Draw(RenderDrawContext, RenderView, RenderViewStage) calls have finished.
public override void Flush(RenderDrawContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | context |
Overrides
InitializeCore()
protected override void InitializeCore()
Overrides
OnRenderSystemChanged()
protected override void OnRenderSystemChanged()
Overrides
Prepare(RenderDrawContext)
Performs most of the work (computation and resource preparation). Later game simulation might be running during that step.
public override void Prepare(RenderDrawContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | context |
Overrides
PrepareEffectPermutations(RenderDrawContext)
Perform effect permutations, before Prepare(RenderDrawContext).
public override void PrepareEffectPermutations(RenderDrawContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | context |
Overrides
Unload()
public override void Unload()