Blender Git Loki

Git Commits -> Revision e42f30d

December 21, 2019, 20:11 (GMT)
GPencil: Refactor: Implement rounded caps

This was a bit tricky to do it cleanly. We create a mask using the stroke
point coordinates and extend the stroke geometry to uncover the mask if the
round caps are needed.

This was needed to be able to workaround the projection artifact of uvs.

Note that this code could be used for stroke shape in the future.

Commit Details:

Full Hash: e42f30d45e387b5eb8f4b95aaf877149083e1fb2
Parent Commit: fe7558c
Lines Changed: +75, -12

3 Modified Paths:

/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+5, -2) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl (+25, -0) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl (+45, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021