development_logos #1

Open
ehab wants to merge 197 commits from ourworld_web/www_projectmycelium_com:development_logos into main
Showing only changes of commit 9f81561a86 - Show all commits

View File

@@ -3,13 +3,10 @@
import { Canvas, useFrame } from "@react-three/fiber";
import { Line, OrbitControls, useTexture } from "@react-three/drei";
import { useMemo, useRef } from "react";
type RotatableGroup = {
rotation: { y: number };
};
import type { Group } from "three";
function Globe() {
const groupRef = useRef<RotatableGroup | null>(null);
const groupRef = useRef<Group>(null);
const cloudTexture = useTexture("/images/cloud1.png");
// Rotate the globe slowly
@@ -78,7 +75,7 @@ function Globe() {
export function HalfGlobe() {
return (
<div className="w-full h-[500px] bg-white flex items-center justify-center">
<div key="half-globe" className="w-full h-[500px] bg-white flex items-center justify-center">
<Canvas camera={{ position: [0, 1.5, 4], fov: 45 }}>
<ambientLight intensity={0.8} />
<Globe />