Renderer/src/main/c/includes/fluid/sim/cellular/cellular.h
austin 2ec5ad9a93
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
cellular bounds desync fixes
2024-12-07 23:52:22 -05:00

33 lines
641 B
C

#ifndef FLUID_SIMULATOR_CELLULAR_H
#define FLUID_SIMULATOR_CELLULAR_H
#include "public.h"
#include "fluid/queue/chunk.h"
#include "fluid/env/environment.h"
/**
* Lateral diffusion rate of the fluids
*/
#define FLUID_CELLULAR_DIFFUSE_RATE2 0.1f
/**
* Gravity transfer rate/threshold
*/
#define FLUID_CELLULAR_DIFFUSE_RATE_GRAV 0.11f
/**
* Minimum density for lateral movement to occur
*/
#define FLUID_CELLULAR_SURFACE_TENSION_CONST 0.4
/**
* Simulates the cellular chunk queue
* @param environment The environment storing the simulation queues
*/
LIBRARY_API void fluid_cellular_simulate(Environment * environment);
#endif