r/GraphicsProgramming • • Oct 10 '26

Mobile GPU Realtime Fluid Sim

The sim came out great but what about the lighting!! All just cubemaps, with fluid depth affecting the roughness mip level. So happy with this.

950 Upvotes

15 comments sorted by

View all comments

67

u/mars_santa Oct 10 '26

Great effect. It might be interesting to tie the lighting to the phone's light sensor. That way the water would match the ambient environment?

12

u/nathan82 Oct 10 '26

Yeah good idea! I do actually have the light sensor percentage as one of the animation "driver" types in my engine, it seems to work better for dramatic on/off effects though. Like if a design has its own internal light sources, you can fade ambient to zero and it turns into a night scene.

5

u/mars_santa Oct 10 '26

add a toy boat or island floating in the center combined with sunsets would be neat.

6

u/nathan82 Oct 10 '26

If I can get rigid bodies working with the fluid sim (might be difficult/impossible within the frame budget), then yes a boat would be really cool. Someone else suggested rubber ducks. An island would be easier to add, and you can crank up the simulation scale so it looks more ocean-like.