BambuStudio/resources/shaders/110/gouraud_light.fs
jun.zhang 9f060f9135 NEW: cherry-pick rendering-stuff to github branch
jira: no-jira

Change-Id: If615d572b2021e707cc9ff037fefeabf46dacfa4
2025-03-24 09:04:57 +08:00

13 lines
260 B
GLSL

#version 110
uniform vec4 uniform_color;
uniform float emission_factor;
// x = tainted, y = specular;
varying vec2 intensity;
void main()
{
gl_FragColor = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
}