コード例 #1
0
def set_texture(node_tree, image):
    """Set texture to normal map flavor.

    :param node_tree: node tree on which normal map is used
    :type node_tree: bpy.types.NodeTree
    :param image: texture image which should be assignet to nmap texture node
    :type image: bpy.types.Texture
    """
    nmap.set_texture(node_tree, image)
コード例 #2
0
ファイル: detail_nmap.py プロジェクト: miranbox/BlenderTools
def set_texture(node_tree, texture):
    """Set texture to normal map flavor.

    :param node_tree: node tree on which normal map is used
    :type node_tree: bpy.types.NodeTree
    :param texture: texture which should be assignet to nmap texture node
    :type texture: bpy.types.Texture
    """
    nmap.set_texture(node_tree, texture)
コード例 #3
0
ファイル: __init__.py プロジェクト: tiagofer/BlenderTools
    def set_nmap_texture(node_tree, texture):
        """Set normal map texture to shader.

        :param node_tree: node tree of current shader
        :type node_tree: bpy.types.NodeTree
        :param texture: texture which should be assignet to nmap texture node
        :type texture: bpy.types.Texture
        """

        nmap.set_texture(node_tree, texture)
コード例 #4
0
ファイル: __init__.py プロジェクト: bbigii/BlenderTools
    def set_nmap_texture(node_tree, texture):
        """Set normal map texture to shader.

        :param node_tree: node tree of current shader
        :type node_tree: bpy.types.NodeTree
        :param texture: texture which should be assignet to nmap texture node
        :type texture: bpy.types.Texture
        """

        nmap.set_texture(node_tree, texture)