2020-03-04 17:45:19 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class LenstextureSetNode(ArmLogicTreeNode):
|
2020-09-08 23:14:51 +02:00
|
|
|
"""Set Lenstexture Effect"""
|
2020-03-04 17:45:19 +01:00
|
|
|
bl_idname = 'LNLenstextureSetNode'
|
|
|
|
bl_label = 'Set Lenstexture'
|
|
|
|
|
|
|
|
def init(self, context):
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
|
|
self.add_input('NodeSocketFloat', 'Center Min Clip', default_value=0.1)
|
|
|
|
self.add_input('NodeSocketFloat', 'Center Max Clip', default_value=0.5)
|
|
|
|
self.add_input('NodeSocketFloat', 'Luminance Min', default_value=0.10)
|
|
|
|
self.add_input('NodeSocketFloat', 'Luminance Max', default_value=2.50)
|
|
|
|
self.add_input('NodeSocketFloat', 'Brightness Exponent', default_value=2.0)
|
2020-03-04 17:45:19 +01:00
|
|
|
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
2020-03-04 17:45:19 +01:00
|
|
|
|
2020-09-09 20:48:35 +02:00
|
|
|
add_node(LenstextureSetNode, category=PKG_AS_CATEGORY)
|