-
Notifications
You must be signed in to change notification settings - Fork 315
/
RpConfigNode.hx
32 lines (27 loc) · 1019 Bytes
/
RpConfigNode.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package armory.logicnode;
class RpConfigNode extends LogicNode {
public var property0: String;
public function new(tree: LogicTree) {
super(tree);
}
override function run(from: Int){
var on: Bool = inputs[1].get();
switch (property0) {
case "SSGI":
on ? armory.data.Config.raw.rp_ssgi = true : armory.data.Config.raw.rp_ssgi = false;
case "SSR":
on ? armory.data.Config.raw.rp_ssr = true : armory.data.Config.raw.rp_ssr = false;
case "SSREFR":
on ? armory.data.Config.raw.rp_ssrefr = true : armory.data.Config.raw.rp_ssrefr = false;
case "Bloom":
on ? armory.data.Config.raw.rp_bloom = true : armory.data.Config.raw.rp_bloom = false;
case "GI":
on ? armory.data.Config.raw.rp_gi = true : armory.data.Config.raw.rp_gi = false;
case "Motion Blur":
on ? armory.data.Config.raw.rp_motionblur = true : armory.data.Config.raw.rp_motionblur = false;
}
armory.renderpath.RenderPathCreator.applyConfig();
armory.data.Config.save();
runOutput(0);
}
}