qvolray

diff src/volume.cc @ 37:450d4c50470f

- 16bit floating point textures halve gpu texture memory usage - slower transfer function change
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 01 Jan 2014 00:23:57 +0200
parents 3d05c261a2f4
children
line diff
     1.1 --- a/src/volume.cc	Sun Apr 15 07:19:01 2012 +0300
     1.2 +++ b/src/volume.cc	Wed Jan 01 00:23:57 2014 +0200
     1.3 @@ -36,7 +36,7 @@
     1.4  	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
     1.5  	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
     1.6  	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
     1.7 -	glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA32F_ARB, xsz, ysz, zsz, 0, GL_RGBA, GL_FLOAT, data);
     1.8 +	glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA16F_ARB, xsz, ysz, zsz, 0, GL_RGBA, GL_FLOAT, data);
     1.9  }
    1.10  
    1.11  bool Volume::load(const char *fname)