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:
authorYimingWu <NicksBest>2021-04-28 17:46:46 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-04-28 17:53:19 +0300
commitf8f7c0ca6db87e5f2613896156e595d2bea5fdde (patch)
tree369d08a6f78d4de271e7e1aaf35f0475fb6d7a74 /source/blender/makesdna/DNA_gpencil_modifier_defaults.h
parent67a52c8a4065f32a57d946524a4fab1d2ba92512 (diff)
GPencil: Fading based on distance to reference object in Opacity and Thickness modifiers
This patch allows you to dynamically control stroke's opacity and thickness using an object for distance reference in the modifier. Fading range is adjustable, and it is compatible with current curve/vertex group selection. Reviewed By: #grease_pencil, antoniov, mendio Maniphest Tasks: T82177, T80194 Differential Revision: https://developer.blender.org/D9091
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_defaults.h')
-rw-r--r--source/blender/makesdna/DNA_gpencil_modifier_defaults.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_defaults.h b/source/blender/makesdna/DNA_gpencil_modifier_defaults.h
index ea03789ddab..b816a45426b 100644
--- a/source/blender/makesdna/DNA_gpencil_modifier_defaults.h
+++ b/source/blender/makesdna/DNA_gpencil_modifier_defaults.h
@@ -184,6 +184,8 @@
.layer_pass = 0, \
.hardeness = 1.0f, \
.curve_intensity = NULL, \
+ .fading_end = 10.0f, \
+ .fading_end_factor = 0.2f, \
}
#define _DNA_DEFAULT_SimplifyGpencilModifierData \
@@ -251,6 +253,8 @@
.thickness_fac = 1.0f, \
.thickness = 30, \
.layer_pass = 0, \
+ .fading_end = 10.0f, \
+ .fading_end_factor = 0.2f, \
}
#define _DNA_DEFAULT_TimeGpencilModifierData \