LNXSDK/leenkx/blender/lnx/logicnode/postprocess/LN_set_ssao_settings.py

16 lines
564 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class SSAOSetNode(LnxLogicTreeNode):
"""Set the SSAO post-processing settings."""
bl_idname = 'LNSSAOSetNode'
bl_label = 'Set SSAO Settings'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxFloatSocket', 'Radius', default_value=1.0)
self.add_input('LnxFloatSocket', 'Strength', default_value=5.0)
self.add_input('LnxIntSocket', 'Max Steps', default_value=8)
self.add_output('LnxNodeSocketAction', 'Out')