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:
authorAntonio Vazquez <blendergit@gmail.com>2020-02-11 17:18:19 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-02-11 17:18:19 +0300
commit8b6ecdb77f697a4897be2bfd0d5aef8730df3ebc (patch)
tree468652724a24dc8716cee8ec340b668333aa2978 /source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl
parent8f3e4c8625fbd67d2162b180dd9f6e4dd16940b0 (diff)
GPencil: Implement Stroke Hardeness
Still pending the aspect ratio
Diffstat (limited to 'source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl')
-rw-r--r--source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl
index bca922ec018..43a9286f7d5 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl
@@ -85,7 +85,7 @@ void main()
fragColor.rgb *= gpencil_lighting();
- fragColor *= stroke_round_cap_mask(strokePt1, strokePt2, strokeThickness);
+ fragColor *= stroke_round_cap_mask(strokePt1, strokePt2, strokeThickness, strokeHardeness);
/* For compatibility with colored alpha buffer.
* Note that we are limited to mono-chromatic alpha blending here