armory/blender/arm/logicnode/renderpath/LN_set_shadows_quality.py
2020-09-24 19:49:21 -03:00

24 lines
771 B
Python

from arm.logicnode.arm_nodes import *
class RpShadowQualityNode(ArmLogicTreeNode):
"""Use to set the shadows quality."""
bl_idname = 'LNRpShadowQualityNode'
bl_label = 'Set Shadows Quality'
arm_version = 1
property0: EnumProperty(
items = [('High', 'High', 'High'),
('Medium', 'Medium', 'Medium'),
('Low', 'Low', 'Low')
],
name='', default='Medium')
def init(self, context):
super(RpShadowQualityNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_output('ArmNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):
layout.prop(self, 'property0')
add_node(RpShadowQualityNode, category=PKG_AS_CATEGORY)