Blender Git Loki

Git Commits -> Revision 0f7bde8

January 4, 2020, 16:42 (GMT)
GPencil: Refactor: Add SMAA as Antialiasing solution

This removes the need of MSAA and the cost associated with it.
We run edge detection on both revealage and color buffer.

However the implemntation is not perfect: The source buffers are in linear
color space and the edge detection implies gamma corrected (display) space.
This mean the algorithm fails to capture some color changes. To workaround
this, we increase SMAA_LUMA_WEIGHT which has the same effect as decreasing
SMAA_THRESHOLD. This works ok in most scenes since GPencil objects have
clean and sharply defined shapes.

Commit Details:

Full Hash: 0f7bde8f6f5883d8ee54e9f58cb9d8134310b5a9
Parent Commit: 7fd76c2
Lines Changed: +303, -1

3 Added Paths:

/source/blender/draw/engines/gpencil/gpencil_antialiasing.c (+155, -0) (View)
/source/blender/draw/engines/gpencil/shaders/gpencil_antialiasing_frag.glsl (+43, -0) (View)
/source/blender/draw/engines/gpencil/shaders/gpencil_antialiasing_vert.glsl (+21, -0) (View)

5 Modified Paths:

/source/blender/draw/CMakeLists.txt (+3, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+7, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+19, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_shader.c (+45, -0) (Diff)
/source/blender/draw/intern/shaders/common_smaa_lib.glsl (+10, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021