mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
fix light render
This commit is contained in:
parent
9f65387068
commit
9319a76a33
@ -5,6 +5,7 @@ import { bindProp, setFromProp } from '../tools.js';
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
extends: Object3D,
|
extends: Object3D,
|
||||||
|
name: 'Light',
|
||||||
props: {
|
props: {
|
||||||
color: { type: String, default: '#ffffff' },
|
color: { type: String, default: '#ffffff' },
|
||||||
intensity: { type: Number, default: 1 },
|
intensity: { type: Number, default: 1 },
|
||||||
@ -41,8 +42,5 @@ export default {
|
|||||||
if (this.light.target) this.$parent.add(this.light.target);
|
if (this.light.target) this.$parent.add(this.light.target);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
render() {
|
|
||||||
return [];
|
|
||||||
},
|
|
||||||
__hmrId: 'Light',
|
__hmrId: 'Light',
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user