mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 14:41:49 +08:00
17 lines
340 B
GLSL
17 lines
340 B
GLSL
#version 140
|
|
|
|
uniform vec4 uniform_color;
|
|
uniform float emission_factor;
|
|
|
|
// x = tainted, y = specular;
|
|
in vec2 intensity;
|
|
//varying float drop;
|
|
in vec4 world_pos;
|
|
|
|
void main()
|
|
{
|
|
if (world_pos.z < 0.0)
|
|
discard;
|
|
gl_FragColor = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
|
|
}
|