Blender Git Commit Log

Git Commits -> Revision f5f93bc

May 3, 2017, 14:31 (GMT)
WIP: new method to calculate scale of the stroke thickness

The previous scale method was not valid because only was affected by viewport, but not by GP object or Stroke location. Now, the pixel size is calculated depending of zdepth and used to scale the stroke thickness.

Maybe there are other ways to do it, but this approach works, so we keep it before finding better methods

Commit Details:

Full Hash: f5f93bc576babca2c8ef303ce357042e6b1db7de
Parent Commit: f6b2b2c
Lines Changed: +46, -75

4 Modified Paths:

/source/blender/draw/engines/gpencil/gpencil_draw.c (+34, -14) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+2, -50) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+2, -2) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_geom.glsl (+8, -9) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021