Files
LNXSDK/leenkx/Sources/leenkx/logicnode/SetWorldTextureNode.hx
Gorochu 38151eb233 Update
2026-06-24 00:05:37 -07:00

26 lines
503 B
Haxe

package leenkx.logicnode;
class SetWorldTextureNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function run(from: Int) {
var world = iron.Scene.active.world;
var raw = world.raw;
if (world.probe != null) {
world.probe.raw.strength = inputs[1].get();
}
var envmap:String = inputs[2].get();
if (envmap != null && envmap != '' && envmap != raw.envmap) {
raw.envmap = envmap;
world.loadEnvmap(function(w) {});
}
runOutput(0);
}
}