Skip to content

Commit

Permalink
small errata
Browse files Browse the repository at this point in the history
  • Loading branch information
gfacciol committed May 19, 2015
1 parent 21ac64d commit 2aab1f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
vec3 pp = hsv2rgb(q.xxx);
vec4 p = vec4(pp.x,pp.y,pp.z,q.w);
gl_FragColor = clamp(p , 0.0, 1.0);
gl_FragColor = p; //clamp(p , 0.0, 1.0);
}
"""
Expand Down Expand Up @@ -204,7 +204,7 @@
void main (void)
{
vec4 q = texture2D(src, gl_TexCoord[0].xy);
q = q * shader_a + shader_b;
q = 1.0 - (q * shader_a + shader_b);
if(q.x < 0.0) q.x = -0.05;
if(q.x > 1.0) q.x = 1.05;
q.x = q.x/1.15 + 0.1;
Expand Down Expand Up @@ -852,7 +852,7 @@ def drawHud(str,color=(0,1,0)):
else:
V.TOGGLE_FLOW_COLORS = V.TOGGLE_FLOW_COLORS % 2
if V.TOGGLE_FLOW_COLORS == 1:
program = SHADER_PROGRAMS['dhsv']
program = SHADER_PROGRAMS['hsv']
else:
program = SHADER_PROGRAMS['rgba']

Expand Down

0 comments on commit 2aab1f9

Please sign in to comment.