diff --git a/leenkx/Sources/leenkx/logicnode/VolumetricLightSetNode.hx b/leenkx/Sources/leenkx/logicnode/VolumetricLightSetNode.hx new file mode 100644 index 0000000..3017040 --- /dev/null +++ b/leenkx/Sources/leenkx/logicnode/VolumetricLightSetNode.hx @@ -0,0 +1,18 @@ +package leenkx.logicnode; + +class VolumetricLightSetNode extends LogicNode { + + public function new(tree:LogicTree) { + super(tree); + } + + override function run(from:Int) { + leenkx.renderpath.Postprocess.volumetric_light_uniforms[0][0] = inputs[1].get().x; + leenkx.renderpath.Postprocess.volumetric_light_uniforms[0][1] = inputs[1].get().y; + leenkx.renderpath.Postprocess.volumetric_light_uniforms[0][2] = inputs[1].get().z; + leenkx.renderpath.Postprocess.volumetric_light_uniforms[1][0] = inputs[2].get(); + leenkx.renderpath.Postprocess.volumetric_light_uniforms[2][0] = inputs[3].get(); + + runOutput(0); + } +} \ No newline at end of file