Files
armorpaint/Sources/arm/render/RenderPathCreator.hx
T
2019-06-19 22:42:17 +02:00

26 lines
659 B
Haxe

package arm.render;
import iron.RenderPath;
import armory.renderpath.Inc;
class RenderPathCreator {
public static var drawMeshes:Void->Void = armory.renderpath.RenderPathDeferred.drawMeshes;
public static var applyConfig:Void->Void = armory.renderpath.RenderPathDeferred.applyConfig;
#if (rp_gi != "Off")
public static var voxelFrame = 0;
public static var voxelFreq = 6; // Revoxelizing frequency
#end
public static var finalTarget:RenderTarget = null;
public static function get():RenderPath {
var path = new RenderPath();
Inc.init(path);
RenderPathDeferred.init(path);
path.commands = RenderPathDeferred.commands;
return path;
}
}