PrusaSlicer-NonPlainar/resources/shaders/ES/flat_clip.fs

18 lines
262 B
Forth
Raw Normal View History

2022-07-21 08:18:18 +00:00
#version 100
precision highp float;
const vec3 ZERO = vec3(0.0, 0.0, 0.0);
uniform vec4 uniform_color;
varying vec3 clipping_planes_dots;
void main()
{
if (any(lessThan(clipping_planes_dots, ZERO)))
discard;
gl_FragColor = uniform_color;
}