コード例 #1
0
ファイル: AnimatedTexture.cs プロジェクト: kuviman/csVPE
 public void ApplyShader(Shader s)
 {
     foreach (var a in Textures)
     {
         a.Item1.ApplyShader(s);
     }
 }
コード例 #2
0
ファイル: _DefTexture.cs プロジェクト: kuviman/csVPE
 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;
 }