Skip to content

Commit

Permalink
don't premultiply line patterns twice
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Jan 30, 2015
1 parent 4d74be1 commit d5acbfb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions shaders/linepattern.fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,5 @@ void main() {

vec4 color = texture2D(u_image, pos) * (1.0 - u_fade) + u_fade * texture2D(u_image, pos2);

color.rgb *= color.a; // premultiply

gl_FragColor = color * alpha;
}

0 comments on commit d5acbfb

Please sign in to comment.