fix: uv map flipY and triplanar world space, add deployment guide
Build and Deploy / build-and-push (push) Failing after 21s

This commit is contained in:
AI Bot
2026-09-01 12:39:41 +05:30
parent 3f6ffd7c4f
commit fff33db43b
4 changed files with 100 additions and 2 deletions
+1
View File
@@ -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;
if (mappingType === 'triplanar') activeMat.triplanarUniforms['t' + type.charAt(0).toUpperCase() + type.slice(1).replace('Map', '')].value = tex;
+2 -2
View File
@@ -43,8 +43,8 @@ export class TriplanarMaterial extends THREE.MeshPhysicalMaterial {
`#include <worldpos_vertex>`,
`
#include <worldpos_vertex>
vTriplanarPosition = position; // Object space
vTriplanarNormal = normal; // Object space normal
vTriplanarPosition = worldPosition.xyz; // World space
vTriplanarNormal = normalize((modelMatrix * vec4(normal, 0.0)).xyz); // World space normal
`
);