Created
June 23, 2021 15:10
-
-
Save positlabs/16df75311385604a87c43eb786bcd838 to your computer and use it in GitHub Desktop.
Setting the color of an ambient light source in script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Scene = require('Scene') | |
const {log} = require('Diagnostics') | |
const {RGBA} = require('Reactive') | |
;(async function () { | |
const light = await Scene.root.findFirst('ambientLight0') | |
log(light) | |
light.color = new RGBA(1, 1, 179/255, 1) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment