fix: write depth on cube mat

This commit is contained in:
neru
2026-01-02 03:53:34 -03:00
parent f0a0e188fc
commit dfdf017835
+1 -1
View File
@@ -607,7 +607,7 @@ const SealCube = forwardRef<Mesh>((props, ref) => {
return ( return (
<mesh ref={meshRef} position={[0, 3, 0]} castShadow receiveShadow> <mesh ref={meshRef} position={[0, 3, 0]} castShadow receiveShadow>
<boxGeometry args={[0.85, 0.85, 0.85]} /> <boxGeometry args={[0.85, 0.85, 0.85]} />
<meshBasicMaterial map={texture} /> <meshBasicMaterial map={texture} depthWrite={true} />
</mesh> </mesh>
); );
}); });