mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-10 04:53:07 +08:00
fix text display entity translucency
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user