first save

This commit is contained in:
Mikuisnotavailable
2025-07-30 02:56:32 +08:00
parent 7b2dda22b9
commit c903bf5284
32 changed files with 2766 additions and 803 deletions

17
src/types/three.d.ts vendored
View File

@@ -0,0 +1,17 @@
// src/types/three.d.ts
import * as THREE from 'three';
import { Object3DNode } from '@react-three/fiber';
declare global {
namespace JSX {
interface IntrinsicElements {
// 使用大写开头的类名
mesh: Object3DNode<THREE.Mesh, typeof THREE.Mesh>;
boxGeometry: Object3DNode<THREE.BoxGeometry, typeof THREE.BoxGeometry>;
meshStandardMaterial: Object3DNode<THREE.MeshStandardMaterial, typeof THREE.MeshStandardMaterial>;
ambientLight: Object3DNode<THREE.AmbientLight, typeof THREE.AmbientLight>;
spotLight: Object3DNode<THREE.SpotLight, typeof THREE.SpotLight>;
meshBasicMaterial: Object3DNode<THREE.MeshBasicMaterial, typeof THREE.MeshBasicMaterial>;
}
}
}