Skip to content

Commit

Permalink
Rename "Strengthen Normals" to "Scale Normals" (#2500)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Jan 23, 2024
1 parent 50807b4 commit a9d68a7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

@normal_map_group.register(
schema_id="chainner:image:strengthen_normals",
name="Strengthen Normals",
name="Scale Normals",
description=[
"Strengths and weakens the normals in the given normal map. Only the R and G channels of the input image will be used. The output normal map is guaranteed to be normalized.",
"Strengths or weakens the normals in the given normal map. Only the R and G channels of the input image will be used. The output normal map is guaranteed to be normalized.",
"Conceptually, this node is equivalent to `chainner:image:add_normals` with the strength of the second normal map set to 0.",
],
icon="MdExpand",
Expand All @@ -36,7 +36,7 @@
),
],
)
def strengthen_normals_node(
def scale_normals_node(
n: np.ndarray, strength: int, method: AdditionMethod
) -> np.ndarray:
return xyz_to_bgr(strengthen_normals(method, n, strength / 100))

0 comments on commit a9d68a7

Please sign in to comment.