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
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
ActionThe render delegate (is called once for every shader pass)
material
XMaterialThe material to be used by this shader;
null
for device texturecamera
CameraThe 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()