antimatter15 / splat

WebGL 3D Gaussian Splat Viewer
https://antimatter15.com/splat/
MIT License
1.89k stars 193 forks source link

How to change backgroud color? #33

Closed Promethe-us closed 8 months ago

Promethe-us commented 8 months ago

Thanks for your amazing work! It really helps me, I want to know how to change the background color from black to white? Could you help me?

jkl3848 commented 8 months ago

I’ve looked into this and Im not sure its possible with the way the splats work. Any shadows in the scene aren’t black, but rather alpha and they show the background through. So changing the background color will change the color of shadows in the scene. Perhaps there is a way but it would require adjusting how the splats themselves are rendered.

Promethe-us commented 8 months ago

Thanks for your reply, I have found. Change 'index.html' s background: black, to background: white, will work.