2016-02-26 09:20:24 +03:00
|
|
|
$input v_color0, v_stipple
|
|
|
|
|
|
|
|
/*
|
2017-01-01 11:18:41 +03:00
|
|
|
* Copyright 2011-2017 Branimir Karadzic. All rights reserved.
|
|
|
|
* 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;
|
|
|
|
}
|