1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

wip: lights

This commit is contained in:
Kevin Levron 2021-04-19 20:49:52 +02:00
parent da2a4607c3
commit 6b3443d761
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export default defineComponent({
const watchProps = ['width', 'height']
watchProps.forEach(p => {
// @ts-ignore
watch(() => this[p], () => { light[p] = this[p] })
watch(() => this[p], (value) => { light[p] = value })
})
if (this.helper) {

View File

@ -17,7 +17,7 @@ export default defineComponent({
const watchProps = ['angle', 'decay', 'distance', 'penumbra']
watchProps.forEach(p => {
// @ts-ignore
watch(() => this[p], () => { light[p] = this[p] })
watch(() => this[p], (value) => { light[p] = value })
})
this.initLight(light)