Class LightProbeProcessor
- Namespace
- Stride.Rendering.LightProbes
- Assembly
- Stride.Engine.dll
public class LightProbeProcessor : EntityProcessor<LightProbeComponent>, IEntityComponentRenderProcessor
- Inheritance
-
LightProbeProcessor
- Implements
- Inherited Members
Constructors
LightProbeProcessor()
public LightProbeProcessor()
Properties
VisibilityGroup
public VisibilityGroup VisibilityGroup { get; set; }
Property Value
Methods
Draw(RenderContext)
Performs work related to this processor.
public override void Draw(RenderContext context)
Parameters
context
RenderContext
OnEntityComponentAdding(Entity, LightProbeComponent, LightProbeComponent)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, LightProbeComponent component, LightProbeComponent data)
Parameters
entity
EntityThe entity.
component
LightProbeComponentdata
LightProbeComponentThe associated data.
OnEntityComponentRemoved(Entity, LightProbeComponent, LightProbeComponent)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, LightProbeComponent component, LightProbeComponent data)
Parameters
entity
EntityThe entity.
component
LightProbeComponentdata
LightProbeComponentThe associated data.
UpdateLightProbeCoefficients()
Updates only the coefficients of the light probes (from Coefficients to Coefficients).
public void UpdateLightProbeCoefficients()
UpdateLightProbePositions()
Light probe runtime data is auto-computed when lightprobes are added/removed. If you move them at runtime, please call this method.
public void UpdateLightProbePositions()
Remarks
This will also update coefficients.