Esempio n. 1
0
    def init(node_tree):
        """Initialize node tree with links for this shader.

        :param node_tree: node tree on which this shader should be created
        :type node_tree: bpy.types.NodeTree
        """

        # init parent
        UnlitVcolTex.init(node_tree)

        # enable hardcoded flavors
        UnlitVcolTex.set_blend_add_flavor(node_tree, True)
Esempio n. 2
0
    def set_material(node_tree, material):
        """Set output material for this shader.

        :param node_tree: node tree of current shader
        :type node_tree: bpy.types.NodeTree
        :param material: blender material for used in this tree node as output
        :type material: bpy.types.Material
        """

        UnlitVcolTex.set_material(node_tree, material)

        material.use_transparency = True
        material.transparency_method = "MASK"
Esempio n. 3
0
    def set_material(node_tree, material):
        """Set output material for this shader.

        :param node_tree: node tree of current shader
        :type node_tree: bpy.types.NodeTree
        :param material: blender material for used in this tree node as output
        :type material: bpy.types.Material
        """

        UnlitVcolTex.set_material(node_tree, material)

        material.use_transparency = True
        material.transparency_method = "MASK"