Table of Contents

Class GeneralShader

Namespace
OmegaEngine.Graphics.Shaders
Assembly
OmegaEngine.dll

A general-purpose surface shader with optional support for normal and specular maps

public class GeneralShader : LightingShader, IDisposable
Inheritance
GeneralShader
Implements
Inherited Members
Extension Methods

Properties

MinShaderModel

The minimum shader model version required to use this shader

public static Version MinShaderModel { get; }

Property Value

Version

Methods

Apply(Action, XMaterial, Camera, params LightSource[])

Applies the shader to the content in the render delegate

public override void Apply(Action render, XMaterial material, Camera camera, 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

camera Camera

The camera for transformation information

lights LightSource[]

An array of all lights this shader should consider

OnEngineSet()

Hook that is called when Engine is set for the first time.

protected override void OnEngineSet()

See Also