From b1a6b8503c3753039d66410dbb74a33332f4a3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=ED=98=84=EC=9A=B1?= <chu9741@ajou.ac.kr> Date: Thu, 8 Apr 2021 20:18:14 +0900 Subject: [PATCH] Update WebGLHelloAPI.js --- WEB_GL01/WebGLHelloAPI.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WEB_GL01/WebGLHelloAPI.js b/WEB_GL01/WebGLHelloAPI.js index 278e6a1..7733d16 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 /* -- GitLab