Table of Contents

Class LightingShader

Namespace
OmegaEngine.Graphics.Shaders
Assembly
OmegaEngine.dll

A SurfaceShader that properly reacts to LightSources

public abstract class LightingShader : SurfaceShader, IDisposable
Inheritance
object
LightingShader
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

render Action

The render delegate (is called once for every shader pass)

material XMaterial

The material to be used by this shader; null for device texture

lights IReadOnlyList<LightSource>

An array of all lights this shader should consider; null for no lighting