aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/assets/skyhanni/shaders/darken.fsh
blob: cfc118eefba6b08eba6926c2478895340017a436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 120

// Fragment Shader
uniform sampler2D texture;
uniform float darknessLevel;

varying vec4 outColor;

void main() {
    vec4 color = texture2D(texture, gl_TexCoord[0].st) * outColor;
    vec3 darkenedColor = color.rgb * darknessLevel;
    gl_FragColor = vec4(darkenedColor, color.a);
}