From 3d5fbbd83b18b901deb95c9670408170a73b45cc Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 31 Dec 2019 16:59:52 +0100 Subject: Improve SDF rendering quality, performance --- utility/opengl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utility') 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) -- cgit v1.2.3