Files
starruler-linux/data/shaders/source/wireframe_cutoff_ps.txt
T
2018-07-17 14:15:37 +02:00

12 lines
211 B
Plaintext

varying vec2 uv;
varying float renderpos;
uniform float cutoff;
uniform sampler2D texture;
void main() {
if(renderpos < (cutoff * 2.0) - 1.0)
discard;
gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
}