From 80e9fc65b17e07150c5f5c6f4e2487c4c6de7974 Mon Sep 17 00:00:00 2001 From: kijai Date: Wed, 1 Jul 2026 02:16:02 +0300 Subject: [PATCH] Fix texture base color brightness --- comfy_extras/nodes_save_3d.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/comfy_extras/nodes_save_3d.py b/comfy_extras/nodes_save_3d.py index 4441c7684..47d4664b3 100644 --- a/comfy_extras/nodes_save_3d.py +++ b/comfy_extras/nodes_save_3d.py @@ -475,11 +475,14 @@ def save_glb(vertices, faces, filepath=None, metadata=None, pbr = { "metallicFactor": 0.0, "roughnessFactor": 0.5, - "baseColorFactor": [0.22, 0.22, 0.22, 1.0], + "baseColorFactor": [0.22, 0.22, 0.22, 1.0], # neutral-gray fallback for bare geometry only } if texture_png_bytes is not None and has_uv: pbr["baseColorTexture"] = {"index": add_image_texture(texture_byte_offset, len(texture_buffer)), "texCoord": 0} + if (texture_png_bytes is not None and has_uv) or "COLOR_0" in primitive_attributes: + pbr["baseColorFactor"] = [1.0, 1.0, 1.0, 1.0] + if mr_png_bytes is not None and has_uv: mr_texture_index = add_image_texture(mr_byte_offset, len(mr_buffer)) pbr["metallicRoughnessTexture"] = {"index": mr_texture_index, "texCoord": 0}