summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/debugdraw/fs_debugdraw_lines_stipple.sc
blob: e4881721409b9ba934df8a2b45f96c7da2b7e30b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$input v_color0, v_stipple

/*
 * Copyright 2011-2022 Branimir Karadzic. All rights reserved.
 * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
 */

#include <bgfx_shader.sh>

void main()
{
	if (0.125 < mod(v_stipple, 0.25) )
	{
		discard;
	}

	gl_FragColor = v_color0;
}