Skip to content

Instantly share code, notes, and snippets.

@positlabs
Created June 23, 2021 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save positlabs/16df75311385604a87c43eb786bcd838 to your computer and use it in GitHub Desktop.
Save positlabs/16df75311385604a87c43eb786bcd838 to your computer and use it in GitHub Desktop.
Setting the color of an ambient light source in script
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