Esempio n. 1
0
 public void ApplyShader(Shader s)
 {
     foreach (var a in Textures)
     {
         a.Item1.ApplyShader(s);
     }
 }
Esempio n. 2
0
 public void ApplyShader(Shader shader)
 {
     Texture tex = this.Copy();
     shader.SetTexture("texture", this);
     Draw.BeginTexture(tex);
     Draw.Clear(Color.Transparent);
     Draw.Translate(-1, -1);
     Draw.Scale(2);
     shader.Render();
     Draw.EndTexture();
     this.tex.Dispose();
     this.tex = tex.tex;
 }