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