mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-12 02:08:18 +08:00
fix nametags+floodfill
This commit is contained in:
1 parent
36c9bef3f0
commit
896b2a1461
1 file changed
+4
-2
@@ -711,8 +711,10 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
|
||||
vec3 normalOffset = 0.5*worldSpaceNormal;
|
||||
|
||||
#if LPV_NORMAL_STRENGTH > 0
|
||||
vec3 texNormalOffset = -normalOffset + viewToWorld(normal);
|
||||
normalOffset = mix(normalOffset, texNormalOffset, (LPV_NORMAL_STRENGTH*0.01));
|
||||
if (any(greaterThan(abs(normal), vec3(1.0e-6)))) {
|
||||
vec3 texNormalOffset = -normalOffset + viewToWorld(normal);
|
||||
normalOffset = mix(normalOffset, texNormalOffset, (LPV_NORMAL_STRENGTH*0.01));
|
||||
}
|
||||
#endif
|
||||
|
||||
vec3 lpvPos = GetLpvPosition(feetPlayerPos) + normalOffset;
|
||||
|
||||
Reference in new issue
Block a user