Skip to content

Commit

Permalink
Improved light position and blending
Browse files Browse the repository at this point in the history
  • Loading branch information
samluescher committed Dec 7, 2012
1 parent dbb5caa commit 2ae89bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/testApp.mm
Expand Up @@ -464,8 +464,10 @@ void copyImageWithScaledColors(ofImage &from, ofImage &to, float alphaScale, flo

if (drawDebugEnabled || calibrationMode) {
glDisable(GL_DEPTH_TEST);
ofEnableBlendMode(OF_BLENDMODE_ALPHA);
drawTerrain(false, true);
glEnable(GL_DEPTH_TEST);
ofDisableBlendMode();
}

if (drawWaterEnabled && !calibrationMode) {
Expand All @@ -487,9 +489,7 @@ void copyImageWithScaledColors(ofImage &from, ofImage &to, float alphaScale, flo
if (drawTerrainGridEnabled || calibrationMode) {
drawTerrainGrid();
}

ofDisableAlphaBlending();


if (drawDebugEnabled) {
// draw sun
ofVec3f pos = pointLight.getPosition();
Expand Down

0 comments on commit 2ae89bd

Please sign in to comment.