armory/blender/arm/logicnode/renderpath/LN_set_ssaa_quality.py
2020-11-17 12:01:15 -03:00

24 lines
711 B
Python

from arm.logicnode.arm_nodes import *
class RpSuperSampleNode(ArmLogicTreeNode):
"""Sets the supersampling quality."""
bl_idname = 'LNRpSuperSampleNode'
bl_label = 'Set SSAA Quality'
arm_version = 1
property0: EnumProperty(
items = [('1', '1', '1'),
('1.5', '1.5', '1.5'),
('2', '2', '2'),
('4', '4', '4')
],
name='', default='1')
def init(self, context):
super(RpSuperSampleNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_output('ArmNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):
layout.prop(self, 'property0')