WIP: Fix #116458: Added decay factor for flattening brushes. #118699

Draft
Raul Fernandez Hernandez wants to merge 87 commits from farsthary/blender:Fix-#116458-Sculpt-Clay-strip-sculpts-on-back-face-when-front-face-only-is-turned-on into blender-v4.1-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 3 additions and 0 deletions
Showing only changes of commit d5a8997f47 - Show all commits

View File

@ -159,6 +159,9 @@ vec3 ensure_valid_specular_reflection(vec3 Ng, vec3 I, vec3 N)
}
vec3 X = normalize(N - dot(N, Ng) * Ng);
if (any(isnan(X))) {
X = N;
}
float Ix = dot(I, X);
float a = sqr(Ix) + sqr(Iz);