diff --git a/WEB_GL01/WebGLHelloAPI.js b/WEB_GL01/WebGLHelloAPI.js index 278e6a181c3f7008f17503eaabb786dc1c5404cd..7733d16c393595d72bcf95a305d1950dfdca3b18 100644 --- a/WEB_GL01/WebGLHelloAPI.js +++ b/WEB_GL01/WebGLHelloAPI.js @@ -176,7 +176,7 @@ function initialiseShaders() { return testGLError("initialiseShaders"); } - +var rrr=0; function renderScene() { /* Set the clear colour @@ -187,8 +187,8 @@ function renderScene() { gl.clear with the colour bit will clear the framebuffer to this vlaue. The functions gl.clearDepth and gl.clearStencil allow an application to do the same with depth and stencil values respectively. */ - rrr=0 - gl.clearColor(0.7, 0.58, rrr, 1.0); + + gl.clearColor(0.47, rrr, 0.3, 1.0); rrr=rrr+0.01 /*