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
|
@ -31,13 +31,14 @@
|
|||
"@types/node": "^15.6.2",
|
||||
"@types/react": "^18.2.18",
|
||||
"@types/react-dom": "^18.2.7",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"@vitejs/plugin-react": "^4.0.0",
|
||||
"@vitejs/plugin-react-swc": "^3.3.2",
|
||||
"fast-glob": "^3.3.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"styled-components": "^5.3.5",
|
||||
"styled-components": "^5.3.11",
|
||||
"theatric": "workspace:*",
|
||||
"three": "^0.155.0",
|
||||
"typescript": "^4.4.2",
|
||||
|
|
|
@ -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