Blender Git Loki
Git Commits -> Revision f2ea8e2
Revision f2ea8e2 by Clément Foucault (master) September 22, 2017, 15:31 (GMT) |
Object Mode : Add Outline FXAA Adds a FXAA for smoothing out the extracted outlines. The Post Process Anti Aliasing is only done on the Alpha channel of the outlines. Because of that we need to add bleed the outline color out of the silouhette so the AA'd alpha can blend the right color and not pick black when the alpha is smoothed out of the silhouette. Also because of the AA needs to have clear contrast to work with, I decided to ditch the "bluring" or the occluded outlines. The FXAA adds an overhead of 0.17ms but we gain back 0.22ms * 4 = 0.88ms by removing the blur. The FXAA Implementation is from Corey Richardson (cmr) (D2717). I had to modify it a bit to only filter the alpha channel. |
Commit Details:
Full Hash: f2ea8e217b0b5bc02d1fbe92c33ee7fe05ae2c46
Parent Commit: 128c7c3
Lines Changed: +727, -76
1 Added Path:
/source/blender/draw/modes/shaders/common_fxaa_lib.glsl (+678, -0) (View)