Class LightingShader
- Namespace
- OmegaEngine.Graphics.Shaders
- Assembly
- OmegaEngine.dll
A SurfaceShader that properly reacts to LightSources
public abstract class LightingShader : SurfaceShader, IDisposable
- Inheritance
-
objectLightingShader
- Implements
- Derived
- Inherited Members
Methods
RunPasses(Action, XMaterial, params IReadOnlyList<LightSource>)
Runs the actual shader passes
protected override void RunPasses(Action render, XMaterial material, params IReadOnlyList<LightSource> lights)
Parameters
renderActionThe render delegate (is called once for every shader pass)
materialXMaterialThe material to be used by this shader;
nullfor device texturelightsIReadOnlyList<LightSource>An array of all lights this shader should consider;
nullfor no lighting