WIP: Upgrade to THREE 155: Upgrade OrbitControls
This commit is contained in:
parent
7a5b1c744c
commit
3837e179bb
14 changed files with 202 additions and 166 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue