Blender Git Loki

Git Commits -> Revision a39a651

Revision a39a651 by Cody Winchester (master)
April 19, 2020, 15:29 (GMT)
GPencil: Add Texture modifier

This patch aims to add a new modifier for grease pencil objects that gives more control over the strokes texture UVs.

There are 3 modes.
1 Control the stroke texture UVs alone
2 Control the fill texture UVs alone
3 Control both the fill and stroke texture UVs

For the stroke texture UVs there are 2 options for fitting the texture to the stroke.
1 The texture uvs are kept a consistent length how it currently is set by default.
2 The uvs are normalized to fit the length of the stroke regardless of how long or short it gets allowing the texture to fit the length of the stroke.

There are then 2 controls to scale up and down the uvs and an offset value that allows moving the texture along the stroke.

For the fill texture UVs it includes all of the transformational controls. Location offset, scale, and rotation.

Reviewed By: antoniov, mendio

Differential Revision:

Commit Details:

Full Hash: a39a6517af6603fcb16728daed88b642c88aa6eb
Parent Commit: a0a5997
Committed By: Antonio Vazquez
Lines Changed: +382, -0

1 Added Path:

/source/blender/gpencil_modifiers/intern/MOD_gpenciltexture.c (+167, -0) (View)

6 Modified Paths:

/release/scripts/startup/bl_ui/ (+21, -0) (Diff)
/source/blender/gpencil_modifiers/CMakeLists.txt (+1, -0) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c (+1, -0) (Diff)
/source/blender/gpencil_modifiers/MOD_gpencil_modifiertypes.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_modifier_types.h (+47, -0) (Diff)
/source/blender/makesrna/intern/rna_gpencil_modifier.c (+144, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021