fix: offset cube to avoid clipping with terrain
This commit is contained in:
+2
-2
@@ -606,7 +606,7 @@ const SealCube = forwardRef<Mesh>((props, ref) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<mesh ref={meshRef} position={[0, 2, 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} />
|
||||||
</mesh>
|
</mesh>
|
||||||
@@ -692,7 +692,7 @@ export default function Home() {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<OrbitControls
|
<OrbitControls
|
||||||
target={[0, 2, 0]}
|
target={[0, 3, 0]}
|
||||||
enablePan={false}
|
enablePan={false}
|
||||||
makeDefault
|
makeDefault
|
||||||
minDistance={2}
|
minDistance={2}
|
||||||
|
|||||||
Reference in New Issue
Block a user