mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-09 06:37:30 +07:00
11 lines
248 B
GLSL
11 lines
248 B
GLSL
|
|
uniform sampler2D u_texture;
|
|
uniform vec4 u_ambient;
|
|
|
|
varying vec2 v_texCoords;
|
|
|
|
void main(){
|
|
vec4 color = texture2D(u_texture, v_texCoords);
|
|
gl_FragColor = clamp(vec4(mix(u_ambient.rgb, color.rgb, color.a), u_ambient.a - color.a), 0.0, 1.0);
|
|
}
|