From a1364a7b0076343eb9ae10e9c85c602470b2147b Mon Sep 17 00:00:00 2001 From: Yousef Rafat <81116377+yousef-rafat@users.noreply.github.com> Date: Sun, 12 Apr 2026 20:14:47 +0200 Subject: [PATCH] small final change --- comfy_extras/nodes_trellis2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_trellis2.py b/comfy_extras/nodes_trellis2.py index 42fe7f707..3479d5410 100644 --- a/comfy_extras/nodes_trellis2.py +++ b/comfy_extras/nodes_trellis2.py @@ -72,7 +72,7 @@ def paint_mesh_with_voxels(mesh, voxel_coords, voxel_colors, resolution): v_colors = voxel_colors[nearest_idx] # to [0, 1] - srgb_colors = (v_colors * 0.5 + 0.5).clamp(0, 1) + srgb_colors = v_colors.clamp(0, 1)#(v_colors * 0.5 + 0.5).clamp(0, 1) # to Linear RGB (required for GLTF) linear_colors = torch.pow(srgb_colors, 2.2)