diff --git a/src/lights/DirectionalLight.ts b/src/lights/DirectionalLight.ts index 138975b..ad51193 100644 --- a/src/lights/DirectionalLight.ts +++ b/src/lights/DirectionalLight.ts @@ -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, default: () => ({ x: 0, y: 0, z: 0 }) }, + target: { type: Object as PropType, default: () => ({ x: 0, y: 0, z: 0 }) }, }, created() { this.initLight(new DirectionalLight(this.color, this.intensity))