├── .flake8 ├── .gitignore ├── .travis.yml ├── LICENSE ├── MANIFEST.in ├── README.md ├── demo ├── README.md ├── __init__.py ├── example_window.py ├── shaders │ ├── demo.ComputeShader.comp │ ├── demo.FieldFragmentShader.frag │ ├── demo.QuiverFragmentShader.frag │ ├── demo.VertexShader.vert │ ├── shader.AddParticle.comp │ ├── shader.AdvectParticle.comp │ └── varying.def.sc ├── simulation_demo.py ├── smooth_particles_area.py └── utils │ ├── __init__.py │ ├── imgui_utils.py │ └── matrix_utils.py ├── media └── screenshot.png ├── natrix ├── __init__.py └── core │ ├── __init__.py │ ├── common │ ├── __init__.py │ └── constants.py │ ├── fluid_simulator.py │ ├── shaders │ └── originals │ │ ├── common.sh │ │ ├── constants.sh │ │ ├── shader.AddCircleObstacle.comp │ │ ├── shader.AddTriangleObstacle.comp │ │ ├── shader.AddVelocity.comp │ │ ├── shader.AdvectVelocity.comp │ │ ├── shader.ApplyVorticity.comp │ │ ├── shader.CalcVorticity.comp │ │ ├── shader.ClearBuffer.comp │ │ ├── shader.Divergence.comp │ │ ├── shader.InitBoundaries.comp │ │ ├── shader.Poisson.comp │ │ ├── shader.SubtractGradient.comp │ │ └── shader.Viscosity.comp │ └── utils │ ├── __init__.py │ ├── bgfx_utils.py │ └── shaders_utils.py ├── noxfile.py ├── poetry.lock ├── pyproject.toml ├── setup.py └── tests └── __init__.py /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/.flake8 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/README.md -------------------------------------------------------------------------------- /demo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/README.md -------------------------------------------------------------------------------- /demo/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo/example_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/example_window.py -------------------------------------------------------------------------------- /demo/shaders/demo.ComputeShader.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/shaders/demo.ComputeShader.comp -------------------------------------------------------------------------------- /demo/shaders/demo.FieldFragmentShader.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/shaders/demo.FieldFragmentShader.frag -------------------------------------------------------------------------------- /demo/shaders/demo.QuiverFragmentShader.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/shaders/demo.QuiverFragmentShader.frag -------------------------------------------------------------------------------- /demo/shaders/demo.VertexShader.vert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/shaders/demo.VertexShader.vert -------------------------------------------------------------------------------- /demo/shaders/shader.AddParticle.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/shaders/shader.AddParticle.comp -------------------------------------------------------------------------------- /demo/shaders/shader.AdvectParticle.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/shaders/shader.AdvectParticle.comp -------------------------------------------------------------------------------- /demo/shaders/varying.def.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/shaders/varying.def.sc -------------------------------------------------------------------------------- /demo/simulation_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/simulation_demo.py -------------------------------------------------------------------------------- /demo/smooth_particles_area.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/smooth_particles_area.py -------------------------------------------------------------------------------- /demo/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo/utils/imgui_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/utils/imgui_utils.py -------------------------------------------------------------------------------- /demo/utils/matrix_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/demo/utils/matrix_utils.py -------------------------------------------------------------------------------- /media/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/media/screenshot.png -------------------------------------------------------------------------------- /natrix/__init__.py: -------------------------------------------------------------------------------- 1 | from .core import * 2 | -------------------------------------------------------------------------------- /natrix/core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /natrix/core/common/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /natrix/core/common/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/common/constants.py -------------------------------------------------------------------------------- /natrix/core/fluid_simulator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/fluid_simulator.py -------------------------------------------------------------------------------- /natrix/core/shaders/originals/common.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/common.sh -------------------------------------------------------------------------------- /natrix/core/shaders/originals/constants.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/constants.sh -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.AddCircleObstacle.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.AddCircleObstacle.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.AddTriangleObstacle.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.AddTriangleObstacle.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.AddVelocity.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.AddVelocity.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.AdvectVelocity.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.AdvectVelocity.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.ApplyVorticity.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.ApplyVorticity.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.CalcVorticity.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.CalcVorticity.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.ClearBuffer.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.ClearBuffer.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.Divergence.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.Divergence.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.InitBoundaries.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.InitBoundaries.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.Poisson.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.Poisson.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.SubtractGradient.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.SubtractGradient.comp -------------------------------------------------------------------------------- /natrix/core/shaders/originals/shader.Viscosity.comp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/shaders/originals/shader.Viscosity.comp -------------------------------------------------------------------------------- /natrix/core/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /natrix/core/utils/bgfx_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/utils/bgfx_utils.py -------------------------------------------------------------------------------- /natrix/core/utils/shaders_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/natrix/core/utils/shaders_utils.py -------------------------------------------------------------------------------- /noxfile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/noxfile.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/pyproject.toml -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbertola/Natrix/HEAD/setup.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------