Real-time fluid dynamics for games