xxxxxxxxxx
16
function setup() {
createCanvas3D(600, 400);
background3D("#333333");
diffuse("#03A9F4");
sphere(0, 0, 0, 1);
diffuse("red");
sphere(-5, 0, -5, 1);
//Look at the red ball from (0, 3, 5)
setCamera(0, 3, 5, -5, 0, -5);
}
function draw() {}