From a5126d618a56ad1fd0482b4a139a59ce31bf0eeb Mon Sep 17 00:00:00 2001 From: AI Bot Date: Thu, 3 Sep 2026 15:15:19 +0530 Subject: [PATCH] fix: Set tex.flipY = false for dynamically loaded textures in ModelViewer to match GLTF UV standard and prevent scrambled UVs --- src/components/ModelViewer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ModelViewer.tsx b/src/components/ModelViewer.tsx index 18aa930..0289cd8 100644 --- a/src/components/ModelViewer.tsx +++ b/src/components/ModelViewer.tsx @@ -103,6 +103,7 @@ const MeshMaterialManager = ({ mesh, sceneObj, textureCache }: MeshMaterialManag tex.name = url; if (type === 'map') tex.colorSpace = THREE.SRGBColorSpace; tex.wrapS = tex.wrapT = THREE.RepeatWrapping; + tex.flipY = false; textureCache.current.set(url, tex); activeMat[type] = tex;