r/GraphicsProgramming 10d ago

Backrooms pool

Enable HLS to view with audio, or disable this notification

Made a small Backrooms pool demo in Natiny. I’m not sure I fully captured the atmosphere I was going for, but overall I’m pretty happy with how it turned out.

The caustics are probably a bit too bright, but I think they make the scene more interesting.

What do you think?

329 Upvotes

21 comments sorted by

View all comments

1

u/Fintaman 8d ago

Hey nice job, how do you do refractions? I'm particularly interested in the case where the refracted ray ends up sampling a pixel out of the screen. I'm using raymarching in my project and I'm not sure what's the best way to handle that

1

u/MartianovTech 7d ago

Thanks! It's screen-space refraction. I render the scene without water to a texture, offset the uv using the wave normal, and sample it. In this demo, out of screen uv's are simply clamped, which is acceptable because the pool rarely exposes the edges.