xxxxxxxxxx
43
var outline = [];
let number;
function setup() {
//createCanvas(300, 300, WEBGL);
createCanvas(windowWidth, windowHeight, WEBGL);
}
function preload(){
number = loadModel('numberthree.obj')
}
function draw() {
background(255);
let locX = mouseX - (height / 2);
let locY = mouseY - (width / 2);
pointLight(255, 255, 255, locX, locY, 10);
pointLight(255, 255, 255, 0, 0, 150);
//orbitControl();
rotateZ(0);
rotateX(windowHeight - mouseY * 0.007);
//rotateX(0.3);
rotateY(windowWidth + mouseX * 0.007);
//scale(1);
scale((windowHeight/1000)+(windowWidth/1000)*2);
model(number);
translate(windowWidth/2-windowHeight/2.5, windowHeight/2-windowHeight/2.5);
noStroke();
//normalMaterial();
//specularMaterial(100);
//specularMaterial(0);
fill(200);
}