fix text display entity translucency

This commit is contained in:
Merlin1809
2026-04-03 19:15:24 +02:00
parent 398ae16f60
commit b9ec1fda89
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -21,7 +21,7 @@
in DATA {
vec4 lmtexcoord;
#ifdef LIGHTNING
#if defined LIGHTNING || defined ENTITIES
vec4 color;
#else
vec3 color;
@@ -645,7 +645,7 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
gl_FragData[0].rgb *= color.rgb;
#ifdef LIGHTNING
#if defined LIGHTNING || defined ENTITIES
gl_FragData[0].a *= color.a;
#endif
#else
+2 -2
View File
@@ -24,7 +24,7 @@ Read the terms of modification and sharing before changing something below pleas
out DATA {
vec4 lmtexcoord;
#ifdef LIGHTNING
#if defined LIGHTNING || defined ENTITIES
vec4 color;
#else
vec3 color;
@@ -139,7 +139,7 @@ void main() {
gl_Position = ftransform();
color.rgb = gl_Color.rgb;
#ifdef LIGHTNING
#if defined LIGHTNING || defined ENTITIES
color.a = gl_Color.a;
#endif