We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26e3bb0 commit fe74ff0Copy full SHA for fe74ff0
src/main/resources/assets/minosoft/rendering/shader/entities/player/player.fsh
@@ -14,7 +14,6 @@
14
#version 330 core
15
16
#define FOG
17
-#define DISABLE_ALPHA_DISCARD
18
19
out lowp vec4 foutColor;
20
@@ -31,9 +30,16 @@ void main() {
31
30
if (finTintColor.a == 0.0f) discard;
32
applyDefaults();
33
applyTint();
34
- applyTexel();
35
- if (finAllowTransparency > 0u) {
36
- if (foutColor.a < 0.5f) discard;
+ vec4 texel = getTexture(finTextureArray, vec3(finTextureUV, finTextureLayer));
+ if (finAllowTransparency != 0u) {
+ if (texel.a < 0.5f) discard;
+ } else {
37
+ texel.a = 1.0f;
38
}
- foutColor.a = 1.0f;
39
+
40
+ foutColor *= texel;
41
42
+ #ifdef FOG
43
+ fog_set();
44
+ #endif
45
0 commit comments