DrawTexture() public method

public DrawTexture ( Texture tex ) : void
tex Texture
return void
 public void Apply(Window window)
 {
     if (!this.useDepth)
     {
         screenMesh.DrawTexture(renderTexture);
     }
     else
     {
         screenMesh.Draw((m) =>
         {
             Graphics.BindTextureToUnit(renderTexture.Id, 0);
             Graphics.BindTextureToUnit(renderTexture.DepthId, 1);
             m.shader.SetUniform("tex", 0);
             m.shader.SetUniform("depth_tex", 1);
         });
     }
 }
Example #2
0
 public void Apply(Window window)
 {
     screenMesh.DrawTexture(renderTexture);
 }