Add files via upload
parent
10c812082b
commit
1da46b69c6
|
@ -0,0 +1,23 @@
|
|||
package armory.logicnode;
|
||||
|
||||
import iron.object.LightObject;
|
||||
|
||||
class SetAreaLightSizeNode extends LogicNode {
|
||||
|
||||
public function new(tree: LogicTree) {
|
||||
super(tree);
|
||||
}
|
||||
|
||||
override function run(from: Int) {
|
||||
var light: LightObject = inputs[1].get();
|
||||
var size: Float = inputs[2].get();
|
||||
var size_y: Float = inputs[3].get();
|
||||
|
||||
if (light == null) return;
|
||||
|
||||
light.data.raw.size = size;
|
||||
light.data.raw.size_y = size_y;
|
||||
|
||||
runOutput(0);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package armory.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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package armory.logicnode;
|
||||
|
||||
import iron.object.LightObject;
|
||||
|
||||
class SetSpotLightSizeNode extends LogicNode {
|
||||
|
||||
public function new(tree: LogicTree) {
|
||||
super(tree);
|
||||
}
|
||||
|
||||
override function run(from: Int) {
|
||||
var light: LightObject = inputs[1].get();
|
||||
var size: Float = inputs[2].get();
|
||||
|
||||
if (light == null) return;
|
||||
|
||||
light.data.raw.spot_size = size;
|
||||
|
||||
runOutput(0);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue