mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-24 09:22:32 +08:00
small final change
This commit is contained in:
parent
243691c258
commit
a1364a7b00
@ -72,7 +72,7 @@ def paint_mesh_with_voxels(mesh, voxel_coords, voxel_colors, resolution):
|
|||||||
v_colors = voxel_colors[nearest_idx]
|
v_colors = voxel_colors[nearest_idx]
|
||||||
|
|
||||||
# to [0, 1]
|
# 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)
|
# to Linear RGB (required for GLTF)
|
||||||
linear_colors = torch.pow(srgb_colors, 2.2)
|
linear_colors = torch.pow(srgb_colors, 2.2)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user