armory/blender/arm/logicnode/postprocess/LN_set_ca_settings.py

17 lines
660 B
Python
Raw Normal View History

from arm.logicnode.arm_nodes import *
class ChromaticAberrationSetNode(ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Set the chromatic aberration post-processing settings."""
bl_idname = 'LNChromaticAberrationSetNode'
2020-09-29 18:38:17 +02:00
bl_label = 'Set CA Settings'
arm_version = 1
def init(self, context):
super(ChromaticAberrationSetNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketFloat', 'Strength', default_value=2.0)
self.add_input('NodeSocketInt', 'Samples', default_value=32)
self.add_output('ArmNodeSocketAction', 'Out')
add_node(ChromaticAberrationSetNode, category=PKG_AS_CATEGORY)