Browse Source

Make background transparent

master
Georg Hopp 10 years ago
parent
commit
0619b45f26
  1. 2
      texture.html

2
texture.html

@ -254,7 +254,7 @@
function draw(gl, obj) { function draw(gl, obj) {
// clear the background (transparent) // clear the background (transparent)
gl.clearColor(0.0, 0.0, 0.0, 1.0);
gl.clearColor(0.0, 0.0, 0.0, 0.0);
// // clear the background (black) // // clear the background (black)
// gl.clearColor(0.0, 0.0, 0.0, 1.0); // gl.clearColor(0.0, 0.0, 0.0, 1.0);
gl.enable(gl.DEPTH_TEST); gl.enable(gl.DEPTH_TEST);

Loading…
Cancel
Save