Chore: Small refactor of r3f's store
This commit is contained in:
parent
94261107fb
commit
d416da5a2f
3 changed files with 18 additions and 28 deletions
|
@ -1,4 +1,4 @@
|
|||
import {editable as e, configure} from '@theatre/plugin-r3f'
|
||||
import {editable as e, bindToCanvas} from '@theatre/plugin-r3f'
|
||||
import {PerspectiveCamera} from '@react-three/drei'
|
||||
import {getProject} from '@theatre/core'
|
||||
import * as THREE from 'three'
|
||||
|
@ -11,8 +11,6 @@ import type {$FixMe} from '../../../plugin-r3f/src/types'
|
|||
|
||||
const ECamera = e(PerspectiveCamera, 'perspectiveCamera')
|
||||
|
||||
const bindToCanvas = configure({})
|
||||
|
||||
// Soft shadows are expensive, comment and refresh when it's too slow
|
||||
softShadows()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue