armory/Sources/armory/logicnode/RpSuperSampleNode.hx

28 lines
583 B
Haxe
Raw Permalink Normal View History

2019-10-02 11:39:47 +02:00
package armory.logicnode;
class RpSuperSampleNode extends LogicNode {
2019-12-19 23:54:08 +01:00
public var property0: String;
2019-10-02 11:39:47 +02:00
2019-12-19 23:54:08 +01:00
public function new(tree: LogicTree) {
2019-10-02 11:39:47 +02:00
super(tree);
}
2019-12-19 23:54:08 +01:00
override function run(from: Int){
2019-10-02 11:39:47 +02:00
switch (property0) {
case "1":
armory.data.Config.raw.rp_supersample = 1;
case "1.5":
armory.data.Config.raw.rp_supersample = 1.5;
case "2":
armory.data.Config.raw.rp_supersample = 2;
case "4":
armory.data.Config.raw.rp_supersample = 4;
}
armory.renderpath.RenderPathCreator.applyConfig();
armory.data.Config.save();
runOutput(0);
}
2019-12-19 23:54:08 +01:00
}