forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
21
leenkx/Sources/leenkx/logicnode/SetSpotLightBlendNode.hx
Normal file
21
leenkx/Sources/leenkx/logicnode/SetSpotLightBlendNode.hx
Normal file
@ -0,0 +1,21 @@
|
||||
package leenkx.logicnode;
|
||||
|
||||
import iron.object.LightObject;
|
||||
|
||||
class SetSpotLightBlendNode extends LogicNode {
|
||||
|
||||
public function new(tree: LogicTree) {
|
||||
super(tree);
|
||||
}
|
||||
|
||||
override function run(from: Int) {
|
||||
var light: LightObject = inputs[1].get();
|
||||
var blend: Float = inputs[2].get();
|
||||
|
||||
if (light == null) return;
|
||||
|
||||
light.data.raw.spot_blend = blend;
|
||||
|
||||
runOutput(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user