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
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 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 LightSource[]

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