styling fixes

This commit is contained in:
41666 2023-10-01 02:10:49 -04:00
parent 396d750a70
commit 4ff9d3934c
5 changed files with 20 additions and 5 deletions

View file

@ -11,9 +11,9 @@ export const main = (next) => {
// Only continue if WebGL is available and working
if (gl === null) {
alert(
"Unable to initialize WebGL. Your browser or machine may not support it."
);
document.querySelector(
"main"
).innerHTML = `<div><i>your browser didn't let me set up webgl</i></div>`;
return;
}

View file

@ -1,6 +1,7 @@
export class Shader {
constructor(gl) {
constructor(gl, core) {
this.gl = gl;
this.core = core;
this.program = gl.createProgram();
this.startTime = Date.now();
}