xxxxxxxxxx
32
var outline = [];
let number;
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
}
function preload(){
number = loadModel('numbertwo.obj')
}
function draw() {
background(0);
let locX = mouseX - height / 2;
let locY = mouseY - width / 2;
pointLight(255, 255, 255, locX, locY, 10);
pointLight(255, 255, 255, locY, locX, 0);
scale((windowHeight/1000)+(windowWidth/1000)*2);
model(number);
noStroke();
fill(255);
}