GPencil: New Dots gradient
authorAntonioya <blendergit@gmail.com>
Mon, 15 Apr 2019 08:32:06 +0000 (10:32 +0200)
committerAntonioya <blendergit@gmail.com>
Mon, 15 Apr 2019 08:32:25 +0000 (10:32 +0200)
commit240940c58ca3ce65e4bbceebea71dd9d1c2c08bc
tree97a9c60a7c2e059cef2541667ade5e00c70c21f5
parent7c79455297d818a94aab2a9be5807b4d9ca43827
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.
24 files changed:
release/scripts/startup/bl_ui/properties_material_gpencil.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/blenkernel/intern/brush.c
source/blender/blenkernel/intern/gpencil.c
source/blender/blenloader/intern/versioning_280.c
source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
source/blender/draw/engines/gpencil/gpencil_draw_utils.c
source/blender/draw/engines/gpencil/gpencil_engine.h
source/blender/draw/engines/gpencil/shaders/gpencil_point_frag.glsl
source/blender/draw/engines/gpencil/shaders/gpencil_point_geom.glsl
source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl
source/blender/draw/engines/gpencil/shaders/gpencil_stroke_frag.glsl
source/blender/editors/gpencil/annotate_paint.c
source/blender/editors/gpencil/gpencil_fill.c
source/blender/editors/gpencil/gpencil_merge.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/gpencil/gpencil_primitive.c
source/blender/editors/space_view3d/view3d_gizmo_ruler.c
source/blender/makesdna/DNA_brush_types.h
source/blender/makesdna/DNA_gpencil_types.h
source/blender/makesdna/DNA_material_types.h
source/blender/makesrna/intern/rna_brush.c
source/blender/makesrna/intern/rna_gpencil.c
source/blender/makesrna/intern/rna_material.c