2021-04-16 07:56:52 +08:00
|
|
|
import { defineComponent } from 'vue'
|
2021-04-16 10:12:41 +08:00
|
|
|
// import Object3D from '../core/Object3D'
|
2021-03-22 21:30:25 +08:00
|
|
|
|
2021-04-04 04:19:57 +08:00
|
|
|
export default defineComponent({
|
2021-03-22 21:30:25 +08:00
|
|
|
// TODO: eventually extend Object3D, for now: error 'injection "scene" not found'
|
|
|
|
// because camera is a sibling of scene in Trois
|
|
|
|
// extends: Object3D,
|
|
|
|
inject: ['three'],
|
|
|
|
render() {
|
2021-04-16 07:56:52 +08:00
|
|
|
return this.$slots.default ? this.$slots.default() : []
|
2021-03-22 21:30:25 +08:00
|
|
|
},
|
2021-04-16 07:56:52 +08:00
|
|
|
})
|