xxxxxxxxxx
17
function setup() {
createCanvas(400, 400, WEBGL);
}
function draw() {
background(100);
noStroke();
//specularMaterial(255, 255, 255);
ambientMaterial(255, 255, 255);
directionalLight(255, 255, 255, 1, 0, -1);
detailX = 5;
detailY = 5;
rotateX(frameCount * 0.005);
rotateY(frameCount * 0.01);
sphere(100, detailX, detailY);
}