mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
fix typo
This commit is contained in:
parent
0c7627abb5
commit
7ebec83808
@ -1,12 +1,12 @@
|
||||
import { defineComponent, PropType } from 'vue'
|
||||
import { DirectionalLight } from 'three'
|
||||
import { Vector2PropInterface } from '../core/Object3D'
|
||||
import { Vector3PropInterface } from '../core/Object3D'
|
||||
import Light from './Light'
|
||||
|
||||
export default defineComponent({
|
||||
extends: Light,
|
||||
props: {
|
||||
target: { type: Object as PropType<Vector2PropInterface>, default: () => ({ x: 0, y: 0, z: 0 }) },
|
||||
target: { type: Object as PropType<Vector3PropInterface>, default: () => ({ x: 0, y: 0, z: 0 }) },
|
||||
},
|
||||
created() {
|
||||
this.initLight(new DirectionalLight(this.color, this.intensity))
|
||||
|
Loading…
Reference in New Issue
Block a user