Abstract Plugin Shader class that can be applied to a TileEngine. The shader provides an easy way to output a RenderTarget based on some input RenderTarget that would have been rendered by the Engine previously. This allows sequantial application of Game Shaders.
Inheritance: ILoadable
Esempio n. 1
0
 public void RegisterGameShader(string shaderName, PostGameShader shader)
 {
     _postGameShaders.Add(shaderName, shader);
     shader.LoadContent(this.Game.Content);
     shader.SetResolution(PixelWidth, PixelHeight);
 }
Esempio n. 2
0
 public bool IsRegistered(PostGameShader shader)
 {
     return _postGameShaders.ContainsValue(shader);
 }