xxxxxxxxxx
let ship;
function preload() {
ship = loadModel('ship.obj');
}
function setup() {
createCanvas(400, 400, WEBGL);
}
function draw() {
background(250);
scale(0.4);
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
normalMaterial();
model(ship);
}