Fixed size of model window, and made the background transparent

This commit is contained in:
2014-02-22 14:26:54 +10:00
parent 838112be0d
commit 3ebb0e866a
2 changed files with 3 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ function webGLStart(){
initShaders();
initBuffers();
gl.clearColor(1.0, 1.0, 1.0, 1.0);
gl.clearColor(0, 0, 0, 0);
gl.enable(gl.DEPTH_TEST);
gl.viewport(0, 0, gl.viewportWidth, gl.viewportHeight);
@@ -385,7 +385,7 @@ function handleMouseMove(event){
}
function resizeCanvas() {
var canvas = document.getElementById("canvas") ;
var canvas = document.getElementById("canvas");
var parent = document.getElementById("virtualObject");
var canvasWidth1 = canvas.width;