'use client'; import * as THREE from 'three'; import { useTexture } from '@react-three/drei'; import { useFrame } from '@react-three/fiber'; import { useRef } from 'react'; import '@/webgl/materials/MeshBannerMaterial'; function Banner({ radius = 1.6, ...props }) { const ref = useRef(null); const texture = useTexture('/banner.jpg'); texture.wrapS = texture.wrapT = THREE.RepeatWrapping; useFrame((state, delta) => { if (!ref.current) return; const material = ref.current.material; if (material.map) material.map.offset.x += delta / 30; }); return ( ); } export default Banner;