xxxxxxxxxx
18
function setup() {
createCanvas3D(600, 400);
background3D("#333333");
hideGrid();
diffuse("#ff7d00");
roughness(0.2);
sphere(-2, 0, 0, 2);
diffuse("#03A9F4");
cube(2, 0, 0, 3);
//We apply a BLOOM effect
pushFX(BLOOM);
}
function draw() {}