What it does
scene.setHDRI sets HDRI on a scene object. It takes url and intensity. intensity is optional.
Signature
scene.setHDRI(url, intensity?)Arguments
urlintensityoptional
Example · generated
function start() { scene.setHDRI('/assets/file.png');}scene.setHDRI is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.