Use WebGL 2 again

This commit is contained in:
Brandon Dyck 2022-10-23 18:59:52 -06:00
parent 0175d964b3
commit b4281607c6

View File

@ -133,7 +133,7 @@
};
let viewer = document.getElementById("viewer");
let gl = viewer.getContext("webgl");
let gl = viewer.getContext("webgl2");
let program = initShaderProgram(gl);
let modelMatrixLocation = gl.getUniformLocation(program, "modelMatrix");