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
Exemplo n.º 1
0
 public void RegisterGameShader(string shaderName, PostGameShader shader)
 {
     _postGameShaders.Add(shaderName, shader);
     shader.LoadContent(this.Game.Content);
     shader.SetResolution(PixelWidth, PixelHeight);
 }
Exemplo n.º 2
0
 public bool IsRegistered(PostGameShader shader)
 {
     return _postGameShaders.ContainsValue(shader);
 }