Andor Salga

sphere() & directionalLight() Test

This test was taken from Processing.org which tests to make
sure the directionalLight() works correctly on a sphere.

// Test from Processing.org
void setup() {
  size(100, 100, P3D);
}

void draw() {
  background(0);
  noStroke();
  directionalLight(51, 102, 126, 0, -1, 0);
  translate(80, 50, 0);
  sphere(30);
}