mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-14 08:21:46 +08:00
15 lines
207 B
GLSL
15 lines
207 B
GLSL
#version 110
|
|
|
|
uniform vec4 uniform_color;
|
|
uniform bool viewed_from_top;
|
|
|
|
varying float world_pos_z;
|
|
|
|
void main()
|
|
{
|
|
if (viewed_from_top && world_pos_z < 0.0)
|
|
discard;
|
|
|
|
gl_FragColor = uniform_color;
|
|
}
|