/** * @license * SPDX-License-Identifier: Apache-2.0 */ import React, { useRef, useState } from 'react'; import { Canvas, useFrame } from '@react-three/fiber'; import { Float, MeshDistortMaterial, Sphere, Stars, Torus, Points, PointMaterial } from '@react-three/drei'; import * as THREE from 'three'; const FWFIInterferenceGrid = () => { const ref = useRef(null); useFrame((state) => { if (ref.current) { const t = state.clock.getElapsedTime(); ref.current.children.forEach((child, i) => { child.rotation.y = t * 0.1 * (i + 1); child.rotation.z = t * 0.05 * (i + 1); // تمدد وانكماش لتمثيل الموجات التداخلية const s = 1 + Math.sin(t * 0.5 + i) * 0.05; child.scale.set(s, s, s); }); } }); return ( {[...Array(12)].map((_, i) => ( ))} ); } const UDPMCoreNode = () => { const meshRef = useRef(null); const [hovered, setHovered] = useState(false); useFrame((state) => { if (meshRef.current) { meshRef.current.rotation.x = Math.sin(state.clock.getElapsedTime() * 0.3) * 0.2; meshRef.current.rotation.y += 0.005; meshRef.current.position.y = Math.sin(state.clock.getElapsedTime()) * 0.5; } }); return ( setHovered(true)} onPointerOut={() => setHovered(false)} > ); } export const HeroScene: React.FC = () => { return (
); };