import React, { useMemo, useRef } from 'react'; import { Canvas, useFrame } from '@react-three/fiber'; import { OrbitControls, PerspectiveCamera } from '@react-three/drei'; import { generateSceneData } from './Generator'; import ObjectInstances from './ObjectInstances'; import TransmissionLines from './TransmissionLines'; import Landscape from './Landscape'; import * as THREE from 'three'; const WebGLContent: React.FC = () => { // Generate the procedural data with a fixed seed so it's consistent const sceneData = useMemo(() => generateSceneData(42), []); const groupRef = useRef(null!); // Very slow rotation for a cinematic feel useFrame((state, delta) => { if (groupRef.current) { groupRef.current.rotation.y += delta * 0.05; } }); return ( <> {/* Atmospheric Fog - blends the edges into the space background */} ); }; export default function HeroWebGLScene() { return (
{/* Decorative overlaid gradient exactly like space */}
); }