aboutsummaryrefslogtreecommitdiff
path: root/ldc_3d_gl_interop.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-06-20 15:06:03 +0200
committerAdrian Kummerlaender2020-06-20 15:06:03 +0200
commitab616f6f6762a895eb5d49b0048d68ff3ca01650 (patch)
tree53ec68eec0cc89c78dc67f5acb9584ce7850c9ba /ldc_3d_gl_interop.py
parenta3ac409a49803956986f4cab35a1f90f8d4b8e81 (diff)
downloadsymlbm_playground-ab616f6f6762a895eb5d49b0048d68ff3ca01650.tar
symlbm_playground-ab616f6f6762a895eb5d49b0048d68ff3ca01650.tar.gz
symlbm_playground-ab616f6f6762a895eb5d49b0048d68ff3ca01650.tar.bz2
symlbm_playground-ab616f6f6762a895eb5d49b0048d68ff3ca01650.tar.lz
symlbm_playground-ab616f6f6762a895eb5d49b0048d68ff3ca01650.tar.xz
symlbm_playground-ab616f6f6762a895eb5d49b0048d68ff3ca01650.tar.zst
symlbm_playground-ab616f6f6762a895eb5d49b0048d68ff3ca01650.zip
Fix usage of MomentsTexture in volumetric examples
Diffstat (limited to 'ldc_3d_gl_interop.py')
-rw-r--r--ldc_3d_gl_interop.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/ldc_3d_gl_interop.py b/ldc_3d_gl_interop.py
index a8f6f8d..130d8ec 100644
--- a/ldc_3d_gl_interop.py
+++ b/ldc_3d_gl_interop.py
@@ -142,11 +142,8 @@ lattice.apply_material_map(
get_cavity_material_map(lattice.geometry))
lattice.sync_material()
-moments_vbo = MomentsVertexBuffer(lattice)
-
particles = Particles(
lattice,
- moments_vbo,
numpy.mgrid[
8*lattice.geometry.size_x//10:9*lattice.geometry.size_x//10:10j,
lattice.geometry.size_y//10:9*lattice.geometry.size_y//10:particle_count/100j,
@@ -162,7 +159,7 @@ def on_display():
for i in range(0,updates_per_frame):
lattice.evolve()
- moments_vbo.collect()
+ lattice.update_moments()
for i in range(0,updates_per_frame):
particles.update(aging = True)