Skip to content

Commit

Permalink
fix: set scene to state
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Mar 22, 2023
1 parent 510a69b commit 1ead941
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/TresCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export const TresCanvas = defineComponent<TresCanvasProps>({
const canvas = ref<HTMLCanvasElement>()
const scene = new THREE.Scene()

const { setState } = useTres()

setState('scene', scene)

function initRenderer() {
const { renderer } = useRenderer(canvas, container, props)

Expand Down

0 comments on commit 1ead941

Please sign in to comment.