Skip to content

Commit

Permalink
sphere is the same now, everything else looks the same as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemcdonald committed Mar 21, 2011
1 parent 5650b8f commit acd721b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions VisualizationApp/src/testApp.cpp
Expand Up @@ -774,7 +774,8 @@ void testApp::standardDraw() {

chroma.begin();
float fov = panel.getValueF("fov");
ofSetupScreenPerspective(ofGetWidth(), ofGetHeight(), OF_ORIENTATION_DEFAULT, false, fov);
float dist = connexionCamera.getZoom();
ofSetupScreenPerspective(ofGetWidth(), ofGetHeight(), OF_ORIENTATION_DEFAULT, false, fov, dist / 1000.f, dist * 1000.f);

connexionCamera.minZoom = panel.getValueF("minZoom");
connexionCamera.maxZoom = panel.getValueF("maxZoom");
Expand Down Expand Up @@ -825,7 +826,7 @@ void testApp::standardDraw() {

dofShader.end();

float sphereSize = 100;
float sphereSize = 10000;
sphereShader.begin();

sphereShader.setUniform1f("alpha", panel.getValueF("sphere_alpha"));
Expand All @@ -836,6 +837,7 @@ void testApp::standardDraw() {

glColor4f(1, 1, 1, panel.getValueF("sphere_alpha"));
ofFill();
ofRotateX(-90);
ofSphere(sphereSize);
sphereShader.end();

Expand Down

0 comments on commit acd721b

Please sign in to comment.