Blender Git Loki

Git Commits -> Revision a0b9533

December 15, 2019, 14:12 (GMT)
GPencil: Refactor: Implement Opacity Masking

This is better than previous implementation but has a higher cost.

We render masked layer to a RGBA16F buffer and we then mask the revealage
and the color in a 2 pass blending.

This could maybe optimized a bit to reduce to 1 blending on recent hardware
but the cost will still be way higher than the stencil method.

On the plus side, there is less code change than with the stencil.

Commit Details:

Full Hash: a0b953374a995183edfe6875ac8fcca493ed9949
Parent Commit: 5e72f70
Lines Changed: +126, -13

1 Added Path:

/source/blender/draw/engines/gpencil/shaders/gpencil_layer_mask_frag.glsl (+28, -0) (View)

5 Modified Paths:

/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_cache_utils.c (+47, -12) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+31, -1) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+9, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_shader.c (+10, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021