xxxxxxxxxx
27
function setup() {
createCanvas3D(600, 400);
//hideGrid();
background3D("#333333");
diffuse("white");
// Try CINEMA, ROTUNDA, SUNSET, SWITZERLAND, NIGHT, NEON, VERANDA, STARS or FOREST
environment(NEON);
//Let's create three spheres to see the effect
align(TOP)
roughness(0);
metalness(1);
sphere(-2, 0, 0, 1);
roughness(0);
metalness(0);
diffuse("#FFFFFF");
sphere(0, 0, 0, 1);
roughness(1.0);
metalness(0);
diffuse("#FF5722")
sphere(2, 0, 0, 1);
}
function draw() {}