I have this html code
<div id="babylonViewer">
<babylon id="babylon-viewer">
<model url='/static/lookdev.glb'></model>
</babylon>
</div>
How do I set a hdr texture for the lighting?
Searching on the internet and the documentaion I have tried code bellow, but nothing seems to change
BabylonViewer.viewerManager
.getViewerPromiseById("babylon-viewer")
.then(function(viewer) {
console.log('Viewer loaded')
viewer.onSceneInitObservable.add(function(scene) {
let tex = new BABYLON.HDRCubeTexture('/static/lighttext.hdr', scene, 128, false, true, false, true);
return scene;
});
})