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
idstringThe ID of the shader to be loaded
controllersDictionary<string, IEnumerable<int>>A set of int arrays that control the counters;
nullif there is no sync-code in the shaderlightingboolOptimize the shader for lighting or no lighting
capabilitiesEngineCapabilitiesThe rendering capabilities available to the shader
Returns
- DataStream
The compiled shader