Files
LNXSDK/leenkx/Sources/leenkx/logicnode/LenstextureGetNode.hx
2025-01-22 16:18:30 +01:00

20 lines
621 B
Haxe

package leenkx.logicnode;
class LenstextureGetNode extends LogicNode {
public function new(tree:LogicTree) {
super(tree);
}
override function get(from:Int):Dynamic {
return switch (from) {
case 0: leenkx.renderpath.Postprocess.lenstexture_uniforms[0];
case 1: leenkx.renderpath.Postprocess.lenstexture_uniforms[1];
case 2: leenkx.renderpath.Postprocess.lenstexture_uniforms[2];
case 3: leenkx.renderpath.Postprocess.lenstexture_uniforms[3];
case 4: leenkx.renderpath.Postprocess.lenstexture_uniforms[4];
default: 0.0;
}
}
}