GPU fluid simulation
C C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Fluid.glsl
Fluid3d.cpp
Light.glsl
Makefile
README.md
Raycast.glsl
Utility.cpp
Utility.h
bstrlib.c
bstrlib.h
gl3.h
pez.c
pez.h
pez.linux.c
vmath.hpp

README.md

Simple 3D fluid simulation done purely in OpenGL by ping-ponging a layered framebuffer object / 3D texture.

At every frame, a deep shadow map is regenerated and a fragment shader performs raycasts against the 3D texture.

This code has been tested on CentOS 6 and RHEL 6, using a decent NVIDIA card and driver. I probably won't have time to help you if you send me "it won't build on my platform" questions, but please feel free to fork and make pull requests.

You can re-use this code in any way, but I'd like you to give me attribution. (CC BY 3.0)