Skip to content

Commit

Permalink
Merge pull request #5932 from raven02/patch-17
Browse files Browse the repository at this point in the history
Fix CRT shader
  • Loading branch information
hrydgard committed Apr 22, 2014
2 parents a2e9443 + 3bd9449 commit 724a5bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/shaders/crt.fsh
Expand Up @@ -25,9 +25,9 @@ void main()
float g = texture2D( sampler0, v_texcoord0 - colorShift + shift ).y;
float b = texture2D( sampler0, v_texcoord0 ).z;

vec4 c = vec4( r, g * 0.99, b, 1 ) * clamp( line_intensity, 0.85, 1 );
vec4 c = vec4( r, g * 0.99, b, 1 ) * clamp( line_intensity, 0.85, 1.0 );

float rollbar = sin( ( v_texcoord0.y + u_time.x ) * 4 );
float rollbar = sin( ( v_texcoord0.y + u_time.x ) * 4.0 );

gl_FragColor.rgba = c + (rollbar * 0.02);
}
}

0 comments on commit 724a5bf

Please sign in to comment.