From a9d68a79a521e4f21419e154a343fa622ece037c Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Tue, 23 Jan 2024 20:28:11 +0100 Subject: [PATCH] Rename "Strengthen Normals" to "Scale Normals" (#2500) --- .../normal_map/{strengthen_normals.py => scale_normals.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename backend/src/packages/chaiNNer_standard/material_textures/normal_map/{strengthen_normals.py => scale_normals.py} (82%) diff --git a/backend/src/packages/chaiNNer_standard/material_textures/normal_map/strengthen_normals.py b/backend/src/packages/chaiNNer_standard/material_textures/normal_map/scale_normals.py similarity index 82% rename from backend/src/packages/chaiNNer_standard/material_textures/normal_map/strengthen_normals.py rename to backend/src/packages/chaiNNer_standard/material_textures/normal_map/scale_normals.py index ce919f418..c3a2a9044 100644 --- a/backend/src/packages/chaiNNer_standard/material_textures/normal_map/strengthen_normals.py +++ b/backend/src/packages/chaiNNer_standard/material_textures/normal_map/scale_normals.py @@ -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", @@ -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))