floodfill offset geo-normal check

This commit is contained in:
NULL511
2024-06-16 23:35:13 -04:00
parent d5a0c9ddfc
commit 0886fb0916
2 changed files with 8 additions and 2 deletions

View File

@ -1057,7 +1057,10 @@ void main() {
#endif
#ifdef IS_LPV_ENABLED
vec3 normalOffset = 0.5*viewToWorld(FlatNormals);
vec3 normalOffset = vec3(0.0);
if (any(greaterThan(abs(FlatNormals), vec3(1.0e-6))))
normalOffset = 0.5*viewToWorld(FlatNormals);
#if LPV_NORMAL_STRENGTH > 0
vec3 texNormalOffset = -normalOffset + slopednormal;