This commit is contained in:
luboslenco
2018-04-26 00:43:04 +02:00
parent dbc1f6db0f
commit db566fb162
4 changed files with 23 additions and 5 deletions
@@ -430,6 +430,8 @@ class RenderPathDeferred {
@:access(iron.RenderPath)
public static function commands() {
if (arm.UITrait.inst.redraw()) { //
// Paint
if (arm.UITrait.inst.depthDirty()) {
path.setTarget("texpaint");
@@ -864,12 +866,16 @@ class RenderPathDeferred {
}
#end
} // redraw
#if ((rp_supersampling == 4) || (rp_rendercapture))
var framebuffer = "buf";
#else
var framebuffer = "";
#end
if (arm.UITrait.inst.redraw()) { //
#if ((rp_antialiasing == "Off") || (rp_antialiasing == "FXAA"))
{
path.setTarget(framebuffer);
@@ -905,6 +911,8 @@ class RenderPathDeferred {
}
#end
} // redraw
#if ((rp_antialiasing == "SMAA") || (rp_antialiasing == "TAA"))
{
path.setTarget("bufa");
@@ -966,6 +974,8 @@ class RenderPathDeferred {
path.drawShader("shader_datas/copy_pass/copy_pass");
}
#end
arm.UITrait.inst.dirty = false; //
}
#end
}