~sircmpwn/wxrc

d4117c25c076ce265bc494ec7bc9cc9ec993206d — Simon Ser 6 months ago 1613603
Discard fragments in grid shader

This prevents the depth buffer from being polluted with samples for
holes between grid lines.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/render.c
M src/render.c => src/render.c +1 -1
@@ 41,7 41,7 @@ static const GLchar grid_fragment_shader_src[] =
	"		a = min(a, 1.0);\n"
	"		gl_FragColor = mix(fg_color, vec4(0), a);\n"
	"	} else {\n"
	"		gl_FragColor = vec4(0);\n"
	"		discard;\n"
	"	}\n"
	"}\n";