xxxxxxxxxx
21
let myShader;
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
myShader = loadShader('shader.vert', 'shader.frag');
}
function draw() {
background(220);
noStroke();
// shader(myShader);
// fill('blue');
// plane(1, 1);
scale(0.25);
translate(0, 0, -100);
rect(0, 0, width, height);
// box(1, 1, 1);
// quad(-1, -1, 1, -1, 1, 1, -1, 1);
}