aboutsummaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-12-31 16:59:52 +0100
committerAdrian Kummerlaender2019-12-31 16:59:52 +0100
commit3d5fbbd83b18b901deb95c9670408170a73b45cc (patch)
tree2f89f110d4d2dff135283070ed03fa7ce316e770 /utility
parente399841b70683013ebdc9f6bcb31a871fef33db2 (diff)
downloadsymlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.gz
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.bz2
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.lz
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.xz
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.zst
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.zip
Improve SDF rendering quality, performance
Diffstat (limited to 'utility')
-rw-r--r--utility/opengl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/opengl.py b/utility/opengl.py
index ec8ab57..e201e29 100644
--- a/utility/opengl.py
+++ b/utility/opengl.py
@@ -77,7 +77,7 @@ class MomentsTexture:
if self.gl_texture_type == GL_TEXTURE_3D:
glTexImage3D(self.gl_texture_type, 0, GL_RGBA32F, self.lattice.memory.size_x, self.lattice.memory.size_y, self.lattice.memory.size_z, 0, GL_RGBA, GL_FLOAT, self.gl_texture_buffer)
glTexParameteri(self.gl_texture_type, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
- glTexParameteri(self.gl_texture_type, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
+ glTexParameteri(self.gl_texture_type, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
glTexParameteri(self.gl_texture_type, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE)
glTexParameteri(self.gl_texture_type, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)
glTexParameteri(self.gl_texture_type, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE)