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

use color.set

This commit is contained in:
Kevin Levron 2021-03-13 19:23:00 +01:00
parent 291444eac6
commit 6c37b1e1cd

View File

@ -11,7 +11,7 @@ export default {
setup(props) {
const scene = new Scene();
if (props.background) scene.background = new Color(props.background);
watch(() => props.background, (value) => { scene.background = new Color(value); });
watch(() => props.background, (value) => { scene.background.set(value); });
return { scene };
},
provide() {