fix: write depth on cube mat
This commit is contained in:
+1
-1
@@ -607,7 +607,7 @@ const SealCube = forwardRef<Mesh>((props, ref) => {
|
||||
return (
|
||||
<mesh ref={meshRef} position={[0, 3, 0]} castShadow receiveShadow>
|
||||
<boxGeometry args={[0.85, 0.85, 0.85]} />
|
||||
<meshBasicMaterial map={texture} />
|
||||
<meshBasicMaterial map={texture} depthWrite={true} />
|
||||
</mesh>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user