![]() |
FluXY
1.3
2.5D fluid simulator for Unity
|
Public Types | |
| enum | PressureSolver { Separable, Iterative } |
Public Member Functions | |
| delegate void | SolverCallback (FluxySolver solver) |
| bool | IsFull () |
| bool | RegisterContainer (FluxyContainer container) |
| void | UnregisterContainer (FluxyContainer container) |
| int | GetContainerID (FluxyContainer container) |
| Vector4 | GetUVRectForContainer (FluxyContainer container) |
| void | UpdateTileData () |
| void | UpdateSolver (float deltaTime) |
Public Attributes | |
| FluxyStorage | storage |
| Storage used to store and manage simulation buffers. More... | |
| int | desiredResolution = 128 |
| Desired buffer resolution. More... | |
| int | densitySupersampling = 2 |
| Supersampling used by density buffer. Eg. a value of 4 will use a density buffer that's 4 times the size of the velocity buffer. More... | |
| bool | disposeWhenCulled = false |
| Dispose of this solver's buffers when culled by LOD. More... | |
| bool | isReadable = false |
| Allows this solver's data to be read back from the CPU. More... | |
| Material | simulationMaterial |
| Material used to update fluid simulation. More... | |
| float | maxTimestep = 0.008f |
| Maximum amount of time advanced in a single simulation step. More... | |
| float | maxSteps = 4 |
| Maximum amount of simulation steps taken in a single frame. More... | |
| PressureSolver | pressureSolver = PressureSolver.Separable |
| Type of pressure solver used: traditional, iterative Jacobi or separable poisson filter. More... | |
| int | pressureIterations = 3 |
| Amount of iterations when the iterative pressure solver is being used. More... | |
Protected Member Functions | |
| virtual void | SimulationStep (FluxyStorage.Framebuffer fb, float deltaTime) |
| virtual void | LateUpdate () |
Properties | |
| FluxyStorage.Framebuffer | framebuffer [get] |
| Texture2D | readbackTexture [get, set] |
Events | |
| SolverCallback | OnStep |
| int Fluxy.FluxySolver.densitySupersampling = 2 |
Supersampling used by density buffer. Eg. a value of 4 will use a density buffer that's 4 times the size of the velocity buffer.
| int Fluxy.FluxySolver.desiredResolution = 128 |
Desired buffer resolution.
| bool Fluxy.FluxySolver.disposeWhenCulled = false |
Dispose of this solver's buffers when culled by LOD.
| bool Fluxy.FluxySolver.isReadable = false |
Allows this solver's data to be read back from the CPU.
| float Fluxy.FluxySolver.maxSteps = 4 |
Maximum amount of simulation steps taken in a single frame.
| float Fluxy.FluxySolver.maxTimestep = 0.008f |
Maximum amount of time advanced in a single simulation step.
| int Fluxy.FluxySolver.pressureIterations = 3 |
Amount of iterations when the iterative pressure solver is being used.
| PressureSolver Fluxy.FluxySolver.pressureSolver = PressureSolver.Separable |
Type of pressure solver used: traditional, iterative Jacobi or separable poisson filter.
| Material Fluxy.FluxySolver.simulationMaterial |
Material used to update fluid simulation.
| FluxyStorage Fluxy.FluxySolver.storage |
Storage used to store and manage simulation buffers.