forked from LeenkxTeam/LNXSDK
		
	t3du - Add material texture filter node
This commit is contained in:
		| @ -0,0 +1,23 @@ | ||||
| from lnx.logicnode.lnx_nodes import * | ||||
|  | ||||
| class SetMaterialTextureFilterNode(LnxLogicTreeNode): | ||||
|     """Sets texture filter interpolation.""" | ||||
|     bl_idname = 'LNSetMaterialTextureFilterNode' | ||||
|     bl_label = 'Set Object Material Texture Filter' | ||||
|     lnx_version = 1 | ||||
|  | ||||
|     def lnx_init(self, context): | ||||
|         self.add_input('LnxNodeSocketAction', 'In') | ||||
|         self.add_input('LnxNodeSocketObject', 'Object') | ||||
|         self.add_input('LnxDynamicSocket', 'Material') | ||||
|         self.add_input('LnxIntSocket', 'Slot') | ||||
|         self.add_input('LnxStringSocket', 'Node') | ||||
|         self.add_input('LnxIntSocket', 'Texture Filter') | ||||
|  | ||||
|         self.add_output('LnxNodeSocketAction', 'Out') | ||||
|  | ||||
|     def draw_buttons(self, context, layout): | ||||
|         layout.label(text='Tex Filter 0: Linear') | ||||
|         layout.label(text='Tex Filter 1: Closest') | ||||
|         layout.label(text='Tex Filter 2: Cubic') | ||||
|         layout.label(text='Tex Filter 3: Smart') | ||||
		Reference in New Issue
	
	Block a user