moisesjpelaez - Tonemap Fixes
This commit is contained in:
@ -4,7 +4,7 @@ class CameraSetNode(LnxLogicTreeNode):
|
||||
"""Set the post-processing effects of a camera."""
|
||||
bl_idname = 'LNCameraSetNode'
|
||||
bl_label = 'Set Camera Post Process'
|
||||
lnx_version = 5
|
||||
lnx_version = 6
|
||||
|
||||
|
||||
def remove_extra_inputs(self, context):
|
||||
@ -29,7 +29,7 @@ class CameraSetNode(LnxLogicTreeNode):
|
||||
if self.property0 == 'DoF F-Stop':
|
||||
self.add_input('LnxFloatSocket', 'DoF F-Stop', default_value=128.0)#8
|
||||
if self.property0 == 'Tonemapping':
|
||||
self.add_input('LnxBoolSocket', 'Tonemapping', default_value=False)#9
|
||||
self.add_input('LnxIntSocket', 'Tonemapping', default_value=5)#9
|
||||
if self.property0 == 'Distort':
|
||||
self.add_input('LnxFloatSocket', 'Distort', default_value=2.0)#10
|
||||
if self.property0 == 'Film Grain':
|
||||
@ -70,6 +70,13 @@ class CameraSetNode(LnxLogicTreeNode):
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
if self.property0 == 'Tonemapping':
|
||||
layout.label(text="0: Filmic")
|
||||
layout.label(text="1: Filmic2")
|
||||
layout.label(text="2: Reinhard")
|
||||
layout.label(text="3: Uncharted2")
|
||||
layout.label(text="5: Agx")
|
||||
layout.label(text="6: None")
|
||||
layout.prop(self, 'property0')
|
||||
|
||||
def get_replacement_node(self, node_tree: bpy.types.NodeTree):
|
||||
|
Reference in New Issue
Block a user