diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-12-05 13:57:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-12-05 13:58:24 +0300 |
commit | 5356c90a46ef14262ec97b4479e2888894e25628 (patch) | |
tree | 1dbfedc1bd4017bcdbdec1a310ce8518d309328a /source/blender/draw/engines/overlay/overlay_outline.c | |
parent | cf77b67c459d481f6d8d34d13e14d22a6cad0842 (diff) |
Overlay Engine: Outlines: Bypass antialias path when not needed
Improve performance on low end hardware.
Diffstat (limited to 'source/blender/draw/engines/overlay/overlay_outline.c')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_outline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_outline.c b/source/blender/draw/engines/overlay/overlay_outline.c index bfef682568f..0d89471c90c 100644 --- a/source/blender/draw/engines/overlay/overlay_outline.c +++ b/source/blender/draw/engines/overlay/overlay_outline.c @@ -97,6 +97,7 @@ void OVERLAY_outline_cache_init(OVERLAY_Data *vedata) /* Don't occlude the "outline" detection pass if in xray mode (too much flickering). */ DRW_shgroup_uniform_float_copy(grp, "alphaOcclu", (pd->xray_enabled) ? 1.0f : 0.125f); DRW_shgroup_uniform_bool_copy(grp, "doThickOutlines", do_expand); + DRW_shgroup_uniform_bool_copy(grp, "doAntiAliasing", pd->antialiasing.enabled); DRW_shgroup_uniform_bool_copy(grp, "isXrayWires", pd->xray_enabled_and_not_wire); DRW_shgroup_uniform_texture_ref(grp, "outlineId", &txl->outlines_id_tx); DRW_shgroup_uniform_texture_ref(grp, "sceneDepth", &dtxl->depth); |