Quellcode durchsuchen

also display the error on the console

Lucas Stadler vor 11 Jahren
Ursprung
Commit
f80f17179a
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      glsl/raymarching.js

+ 1 - 0
glsl/raymarching.js

22
  function displayError(e) {
22
  function displayError(e) {
23
    window.error = e;
23
    window.error = e;
24
    errorEl.textContent = e;
24
    errorEl.textContent = e;
25
    console.error(e);
25
  }
26
  }
26
  
27
  
27
  function compileShader(gl, type, shaderSrc) {
28
  function compileShader(gl, type, shaderSrc) {