feat/add-three.js #3

Merged
servostar merged 5 commits from feat/add-three.js into main 2024-10-24 22:16:32 +00:00
1 changed files with 0 additions and 1 deletions
Showing only changes of commit ee965a539a - Show all commits

View File

@ -2,7 +2,6 @@ import { Canvas, useFrame, useLoader } from '@react-three/fiber';
import { Circle, Clone, ContactShadows, OrbitControls } from '@react-three/drei' import { Circle, Clone, ContactShadows, OrbitControls } from '@react-three/drei'
import { Suspense, useRef } from 'react'; import { Suspense, useRef } from 'react';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'; import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
import { AmbientLight } from 'three';
function Gear(props: any) { function Gear(props: any) {
const gltf = useLoader(GLTFLoader, './gear.glb'); const gltf = useLoader(GLTFLoader, './gear.glb');