Updated OpenGL examples

This commit is contained in:
codeanticode
2012-02-12 16:19:55 +00:00
parent 8b72e8e52a
commit be51cbc787
9 changed files with 12 additions and 618 deletions
@@ -24,9 +24,7 @@ void draw(){
fill(182, 62, 29);
noStroke();
// Add basic light setup
ambientLight(100, 100, 100);
directionalLight(255, 255, 255, 0, 1, 0);
lights();
translate(width/2, height*1.2, -380);
// Tip tower to see inside
rotateX(radians(-45));
@@ -14,6 +14,7 @@ color boxFill;
void setup() {
size(640, 360, P3D);
noStroke();
hint(DISABLE_DEPTH_TEST);
}
void draw() {