pub static model: ModelInternalTypeExpand description
Render a 3d model to the screen.
Examples
//draw a spinning octahedron
let octahedron;
function preload() {
octahedron = loadModel('assets/octahedron.obj');
}
function setup() {
createCanvas(100, 100, WEBGL);
}
function draw() {
background(200);
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
model(octahedron);
}Parameters
model Loaded 3d model to be rendered