Wumpf / blub

3D fluid simulation experiments in Rust, using WebGPU-rs (WIP)
MIT License
392 stars 12 forks source link

Skybox, reflection, refraction #37

Closed Wumpf closed 3 years ago

Wumpf commented 4 years ago

this blue background gets boring. Let's load some HDR cubemap (it's tempting to compute some athmospheric model and use that.. but need to FOCUS!)

Can water approximate double refraction (i.e. refract on entering and leaving (ignoring extra layers))?

Wumpf commented 3 years ago

Refraction & reflection is done with a "background function", so as long as there's no meshes this is actually perfect. Kinda don't want to leave this behind and go the way of screen space, so we'll likely do some distance field marching going forward :)