2017-01-21 23:22:32 +01:00
|
|
|
$input v_color0, v_path_length
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright 2011-2015 Branimir Karadzic. All rights reserved.
|
|
|
|
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "../common/common.sh"
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
if (mod(v_path_length * 20.0, 2) < 1.0)
|
|
|
|
discard;
|
|
|
|
|
2017-02-20 10:48:59 +01:00
|
|
|
gl_FragColor = v_color0 * 0.8;
|
2017-01-21 23:22:32 +01:00
|
|
|
}
|