"use client"; import React, { useRef } from 'react'; import { Canvas, useFrame } from '@react-three/fiber'; import { OrbitControls, PerspectiveCamera, useTexture } from '@react-three/drei'; import * as THREE from 'three'; function RotatingCube() { const meshRef = useRef(null); // Animation loop useFrame((state, delta) => { if (meshRef.current) { meshRef.current.rotation.x += delta * 0.2; meshRef.current.rotation.y += delta * 0.3; } }); return ( ); } function FloatingGlobe() { const meshRef = useRef(null); useFrame((state, delta) => { if (meshRef.current) { meshRef.current.rotation.y += delta * 0.1; meshRef.current.position.y = Math.sin(state.clock.elapsedTime * 0.5) * 0.2; } }); return ( ); } export default function HeroModel() { return (
); }