Table of Contents

Class DynamicShader

Namespace
OmegaEngine.Graphics.Shaders
Assembly
OmegaEngine.dll

Helper class for dynamically generating Shader code

public static class DynamicShader
Inheritance
DynamicShader
Inherited Members

Remarks

Uses partial .fx files with XML control comments as input

Methods

FromContent(string, Dictionary<string, IEnumerable<int>>, bool, EngineCapabilities)

Loads a dynamic shader file via the ContentManager and compiles it.

public static DataStream FromContent(string id, Dictionary<string, IEnumerable<int>> controllers, bool lighting, EngineCapabilities capabilities)

Parameters

id string

The ID of the shader to be loaded

controllers Dictionary<string, IEnumerable<int>>

A set of int arrays that control the counters; null if there is no sync-code in the shader

lighting bool

Optimize the shader for lighting or no lighting

capabilities EngineCapabilities

The rendering capabilities available to the shader

Returns

DataStream

The compiled shader