WIP: Upgrade to THREE 155: Upgrade OrbitControls

This commit is contained in:
Aria Minaei 2023-08-04 10:54:17 +02:00
parent 7a5b1c744c
commit 3837e179bb
14 changed files with 202 additions and 166 deletions

View file

@ -10,7 +10,7 @@ import {
RawShaderMaterial,
Scene,
ShaderMaterial,
SphereBufferGeometry,
SphereGeometry,
Vector2,
Vector3,
WebGLRenderer,
@ -190,7 +190,7 @@ export default function ThreeScene(props: ThreeSceneProps) {
light.position.set(1, 5, 4)
scene.add(light)
mesh = new Mesh(new SphereBufferGeometry(3), new MeshPhongMaterial())
mesh = new Mesh(new SphereGeometry(3), new MeshPhongMaterial())
scene.add(mesh)
// RAF