Skip to content

Commit

Permalink
Shifting texture coordinates between 0 and 1
Browse files Browse the repository at this point in the history
  • Loading branch information
McNopper committed May 4, 2013
1 parent 5b5f8a4 commit 2aefe45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Example24/shader/erode.frag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ out vec4 fragColor;

void main()
{
float erodeLevel = texture(u_texture, normalize(v_vertex)).r;
float erodeLevel = texture(u_texture, normalize(v_vertex) * 0.5 + 0.5).r;

// u_erode gets smaller over time. If this value is smaller than the reference texel, discard it.
// This results in an erode effect over time.
Expand Down

0 comments on commit 2aefe45

Please sign in to comment.