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 (
|
||||
<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]} />
|
||||
<meshBasicMaterial map={texture} />
|
||||
</mesh>
|
||||
@@ -692,7 +692,7 @@ export default function Home() {
|
||||
/>
|
||||
|
||||
<OrbitControls
|
||||
target={[0, 2, 0]}
|
||||
target={[0, 3, 0]}
|
||||
enablePan={false}
|
||||
makeDefault
|
||||
minDistance={2}
|
||||
|
||||
Reference in New Issue
Block a user