mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Code cleanup, updated TexturedSphere example, some more fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user