2016-02-26 09:20:24 +03:00
|
|
|
$input v_color0, v_stipple
|
|
|
|
|
|
|
|
/*
|
2018-01-01 22:16:06 +03:00
|
|
|
* Copyright 2011-2018 Branimir Karadzic. All rights reserved.
|
2017-01-01 11:18:41 +03:00
|
|
|
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
2016-02-26 09:20:24 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <bgfx_shader.sh>
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
if (0.125 < mod(v_stipple, 0.25) )
|
|
|
|
{
|
|
|
|
discard;
|
|
|
|
}
|
|
|
|
|
|
|
|
gl_FragColor = v_color0;
|
|
|
|
}
|