From 240940c58ca3ce65e4bbceebea71dd9d1c2c08bc Mon Sep 17 00:00:00 2001 From: Antonioya Date: Mon, 15 Apr 2019 10:32:06 +0200 Subject: GPencil: New Dots gradient This commit adds support for drawing Dots strokes with a gradient factor to get artistic effects like watercolor. Currently, the option is only supported by Dots materials, and in the future will be added to line strokes, but now there is a limitation on drawing engine and we will keep disabled on Line materials. Also, added the option to align Dots and Boxes strokes textures aligned with the drawing path to get more fluid strokes. --- source/blender/makesdna/DNA_gpencil_types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/makesdna/DNA_gpencil_types.h') diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h index 56e17fe9149..dc752cc0bc9 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -199,6 +199,12 @@ typedef struct bGPDstroke { /** Caps mode for each stroke extreme */ short caps[2]; + /** gradient control along y for color */ + float gradient_f; + /** factor xy of shape for dots gradients */ + float gradient_s[2]; + char _pad_3[4]; + /** Vertex weight data. */ struct MDeformVert *dvert; void *_pad3; -- cgit v1.2.3