Merge pull request #2 from MatissJurevics/cursor/hero-section-polygon-reduction-d730
Hero section polygon reduction
This commit is contained in:
@@ -15,7 +15,7 @@ const Terrain = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// Create geometry with reduced segment count for mobile devices
|
// Create geometry with reduced segment count for mobile devices
|
||||||
const segments = isMobile ? 40 : 100; // Reduce from 100x100 to 40x40 on mobile (84% reduction)
|
const segments = isMobile ? 28 : 100; // Reduce from 100x100 to 28x28 on mobile (50% polygon reduction)
|
||||||
const geometry = useMemo(() => new THREE.PlaneGeometry(20, 20, segments, segments), [segments]);
|
const geometry = useMemo(() => new THREE.PlaneGeometry(20, 20, segments, segments), [segments]);
|
||||||
|
|
||||||
useFrame((state) => {
|
useFrame((state) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user