let b;
function preload() {
b = loadModel("/assets/borb.obj");
}
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
specularMaterial(255);
noStroke();
angleMode(DEGREES);
}
function draw() {
normalMaterial();
background(0);
orbitControl();
t = frameCount;
rotateY(t / 5);
pointLight(95, 95, 95, 500, 500, 1500);
torus(160, 10, 50, 24);
push();
translate(0, 0, 100 * sin(t) * cos(t));
push();
rotateY(90);
rotateZ(180);
scale(50, 50, 50);
model(b);
pop();
translate(0, 90, 0);
rotateX(90);
rotateZ(90);
cylinder(12, 120, 24, 24);
pop();
}