Skip to content

Commit

Permalink
LSystem: Fixed OpenGL errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
prisonerjohn committed Jun 30, 2014
1 parent 5077264 commit edf6dde
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CloudsData/visualsystems/LSystem/shaders/postprocess.fs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#version 120
#extension GL_ARB_texture_rectangle : enable

uniform sampler2DRect tex0;
uniform sampler2DRect tex1;
uniform vec2 resolution;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,15 @@ void CloudsVisualSystemLSystem::selfDraw(){

// Grid
//
ofPushStyle();
// ofEnableBlendMode(OF_BLENDMODE_ADD);
ofSetLineWidth(gridCrossWidth);
grid.draw();
ofPopStyle();

// Original L-System
if (gridCrossWidth > 0) {
ofPushStyle();
//ofEnableBlendMode(OF_BLENDMODE_ADD);
ofSetLineWidth(gridCrossWidth);
grid.draw();
ofPopStyle();
}

// Original L-System
//
ofEnableAlphaBlending();
ofSetColor(255, lsysOriginalAlpha*255);
Expand Down Expand Up @@ -382,7 +384,7 @@ void CloudsVisualSystemLSystem::selfDraw(){
}
}
}

// Growing Trace
//
ofSetColor(255, lsysGrowingAlpha*255);
Expand Down

0 comments on commit edf6dde

Please sign in to comment.