Skip to content

Commit

Permalink
Fragment shader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Denvi committed Sep 13, 2015
1 parent c6d5d34 commit 8018baa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shaders/fshader.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ void main()
float coord = length(sub.x) > length(sub.y) ? gl_FragCoord.x : gl_FragCoord.y;
if (cos(coord / factor) > 0.0) discard;
}

#ifdef GL_ES
if (point_size > 0.0) {
vec2 coord = gl_PointCoord.st - vec2(0.5, 0.5);
if (length(coord) > 0.5) discard;
}
#endif

// Set fragment color from texture
gl_FragColor = v_color;
Expand Down

0 comments on commit 8018baa

Please sign in to comment.