Code cleanup, updated TexturedSphere example, some more fixes

This commit is contained in:
codeanticode
2012-01-17 18:08:30 +00:00
parent 23f9596f36
commit 0f17efa9fd
8 changed files with 311 additions and 1016 deletions
@@ -28,6 +28,7 @@ int SINCOS_LENGTH = int(360.0 / SINCOS_PRECISION);
void setup() {
size(1024, 768, P3D);
smooth();
texmap = loadImage("world32k.jpg");
initializeSphere(sDetail);
}
@@ -43,8 +44,7 @@ void renderGlobe() {
pushMatrix();
noFill();
stroke(255,200);
strokeWeight(2);
smooth();
strokeWeight(2);
popMatrix();
lights();
pushMatrix();
@@ -169,4 +169,4 @@ void texturedSphere(float r, PImage t)
vertex(sphereX[voff]*r, sphereY[voff]*r, sphereZ[voff]*r, u, v);
endShape();
}
}