Cleanup: Add comment for tilt_sensitivity constant

Derived from discussions on D8893

Pull Request: https://projects.blender.org/blender/blender/pulls/138417
This commit is contained in:
Sean Kim 2025-05-05 04:45:48 +02:00 committed by Sean Kim
parent 91c340a1a5
commit bf0018d75b

View File

@ -2682,6 +2682,8 @@ float3 tilt_apply_to_normal(const Object &object,
}
const float3 world_space = math::transform_direction(object.object_to_world(), normal);
/* Tweaked based on initial user feedback, with a value of 1.0, higher brush tilt strength
* lead to the stroke surface direction becoming inverted due to extreme rotations. */
constexpr float tilt_sensitivity = 0.7f;
const float rot_max = M_PI_2 * tilt_strength * tilt_sensitivity;
const float3 normal_tilt_y = math::rotate_direction_around_axis(