mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-12 02:08:18 +08:00
add hit glow effect in end and nether. make some shadow related settings more user friendly
This commit is contained in:
1 parent
43a45ffe1b
commit
bdaa0a5cfd
4 files changed
+43
-5
No files matched your search
@@ -67,6 +67,7 @@ uniform vec3 cameraPosition;
|
||||
uniform float rainStrength;
|
||||
uniform sampler2D noisetex;//depth
|
||||
uniform sampler2D depthtex0;
|
||||
uniform vec4 entityColor;
|
||||
|
||||
flat varying float blockID;
|
||||
|
||||
@@ -361,6 +362,13 @@ void main() {
|
||||
#if SSS_TYPE == 3
|
||||
gl_FragData[2].b = SpecularTex.b;
|
||||
#endif
|
||||
|
||||
// hit glow effect...
|
||||
#ifdef ENTITIES
|
||||
Albedo.rgb = mix(Albedo.rgb, entityColor.rgb, entityColor.a);
|
||||
gl_FragData[2].a = mix(gl_FragData[2].a, 0.9, entityColor.a);;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user