Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2022-10-04 15:23:52 +0300
committerJeroen Bakker <jeroen@blender.org>2022-10-04 15:23:52 +0300
commit633dd0c47c80cfd1b6b33deaf1648826e38fbb07 (patch)
tree023bbda678445c7f2753ebd9c1597e9df11d6db5 /source/blender/gpu/shaders
parent6cd0c80d97435a888f514fc3b33fffe6c7d82e13 (diff)
Fix hardness.
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r--source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_lib.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_lib.glsl b/source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_lib.glsl
index a8b008ca7eb..8ea29f4bbae 100644
--- a/source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_lib.glsl
+++ b/source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_lib.glsl
@@ -52,7 +52,7 @@ float SCULPT_hardness_factor(float dist, float hardness, float radius)
else if (hardness >= 1.0) {
return 1.0;
}
- return (p - hardness / (1.0 - hardness));
+ return (p - hardness) / (1.0 - hardness);
}
/** \} */