瀏覽代碼

remove a bit more unnecessary code

Lucas Stadler 10 年之前
父節點
當前提交
371a41ce28
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      glsl/raymarching.js

+ 0 - 3
glsl/raymarching.js

@ -237,14 +237,11 @@ void main() {
237 237
    h = canvas.height = window.innerHeight;
238 238
    gl.viewport(0, 0, w, h);
239 239
    gl.uniform2f(iResolution, w, h);
240
    gl.clearColor(0.0, 0.0, 0.0, 1.0);
241
    gl.clear(gl.COLOR_BUFFER_BIT);
242 240
    render();
243 241
  };
244 242
  
245 243
  render();
246 244
} catch (e) {
247
  //alert(e);
248 245
  var msg = document.createElement("pre");
249 246
  msg.style = "color: red; position: absolute; right: 0; bottom: 0";
250 247
  msg.textContent = e;