huggingface / gsplat.js

JavaScript Gaussian Splatting library.
MIT License
1.26k stars 77 forks source link

How to set the background color of the scene #67

Open jamess922 opened 4 months ago

jamess922 commented 4 months ago

Hi: Want to know how to set the background color of the scene,now it's black

TravisThomp commented 4 months ago

After you create the renderer you set the background color like this

//Setting the background color as an rgba
renderer.backgroundColor = new SPLAT.Color32(64, 64, 64, 255); 

have fun :p

jamess922 commented 4 months ago

Thank your~~