1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 12:22:03 +08:00
trois/src/core/Camera.ts

13 lines
377 B
TypeScript
Raw Normal View History

2021-04-16 07:56:52 +08:00
import { defineComponent } from 'vue'
// import Object3D from '../core/Object3D';
export default defineComponent({
// 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-04-16 07:56:52 +08:00
})