Skip to content

Commit

Permalink
render color now tied to distance from the viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
dkogan committed Apr 29, 2013
1 parent 22dc81c commit 9bb4872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ void main(void)
else if( at_right_seam ) az += 2.0;

// coloring by...
//red = zeff / 10000.0; // ... distance from camera
red = vin.z / 3500.0; // ... elevation
red = zeff / 10000.0; // ... distance from camera
//red = vin.z / 3500.0; // ... elevation

// float ft = vin.z*100.0/2.54/12.0;
// if( abs( float(-demfileW)+ vin.x/float(WDEM-1) -
Expand Down

0 comments on commit 9bb4872

Please sign in to comment.