mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-22 00:37:35 +08:00
fix nametags+floodfill
This commit is contained in:
parent
36c9bef3f0
commit
896b2a1461
@ -711,8 +711,10 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
|
|||||||
vec3 normalOffset = 0.5*worldSpaceNormal;
|
vec3 normalOffset = 0.5*worldSpaceNormal;
|
||||||
|
|
||||||
#if LPV_NORMAL_STRENGTH > 0
|
#if LPV_NORMAL_STRENGTH > 0
|
||||||
|
if (any(greaterThan(abs(normal), vec3(1.0e-6)))) {
|
||||||
vec3 texNormalOffset = -normalOffset + viewToWorld(normal);
|
vec3 texNormalOffset = -normalOffset + viewToWorld(normal);
|
||||||
normalOffset = mix(normalOffset, texNormalOffset, (LPV_NORMAL_STRENGTH*0.01));
|
normalOffset = mix(normalOffset, texNormalOffset, (LPV_NORMAL_STRENGTH*0.01));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
vec3 lpvPos = GetLpvPosition(feetPlayerPos) + normalOffset;
|
vec3 lpvPos = GetLpvPosition(feetPlayerPos) + normalOffset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user