Add files via upload

master
t3du 2022-01-21 10:56:54 -03:00 committed by GitHub
parent 10c812082b
commit 1da46b69c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 65 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}