armory/Sources/armory/logicnode/LenstextureGetNode.hx

20 lines
621 B
Haxe
Raw Normal View History

package armory.logicnode;
class LenstextureGetNode extends LogicNode {
public function new(tree:LogicTree) {
super(tree);
}
override function get(from:Int):Dynamic {
2020-10-01 21:05:47 +02:00
return switch (from) {
case 0: armory.renderpath.Postprocess.lenstexture_uniforms[0];
case 1: armory.renderpath.Postprocess.lenstexture_uniforms[1];
case 2: armory.renderpath.Postprocess.lenstexture_uniforms[2];
case 3: armory.renderpath.Postprocess.lenstexture_uniforms[3];
case 4: armory.renderpath.Postprocess.lenstexture_uniforms[4];
2020-10-02 00:24:21 +02:00
default: 0.0;
2020-10-01 21:05:47 +02:00
}
}
}