diff --git a/leenkx/Sources/leenkx/renderpath/RenderPathForward.hx b/leenkx/Sources/leenkx/renderpath/RenderPathForward.hx index 94b7bd4..abab814 100644 --- a/leenkx/Sources/leenkx/renderpath/RenderPathForward.hx +++ b/leenkx/Sources/leenkx/renderpath/RenderPathForward.hx @@ -673,6 +673,15 @@ class RenderPathForward { } #end + #if rp_overlays + { + path.setTarget(target); + path.clearTarget(null, 1.0); + path.drawMeshes("overlay"); + } + #end + + #if ((rp_antialiasing == "SMAA") || (rp_antialiasing == "TAA")) { path.setTarget("bufa"); @@ -703,12 +712,6 @@ class RenderPathForward { } #end - #if rp_overlays - { - path.clearTarget(null, 1.0); - path.drawMeshes("overlay"); - } - #end } public static function setupDepthTexture() {