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
stringThe 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 shaderlighting
boolOptimize the shader for lighting or no lighting
capabilities
EngineCapabilitiesThe rendering capabilities available to the shader
Returns
- DataStream
The compiled shader