Ejemplo 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
        UnlitTex.init(node_tree)

        # enable hardcoded flavors: DEPTH, BLEND_OVER
        UnlitTex.set_blend_over_flavor(node_tree, True)
Ejemplo n.º 2
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
        UnlitTex.init(node_tree)

        # enable hardcoded flavors: DEPTH, BLEND_OVER
        UnlitTex.set_blend_over_flavor(node_tree, True)
Ejemplo 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
        """

        UnlitTex.set_material(node_tree, material)

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