medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 16333c73ee7976a97da87f2f45408a0b3eee4a1d
parent b8d8ba93b1f254cc2b01e428ec60fc155ee12966
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue Oct 13 16:42:30 +0100

Use RGB32F for the normal map so negative values don't get clamped

Diffstat:
gpubtt.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gpubtt.cc b/gpubtt.cc @@ -80,7 +80,7 @@ void gpubtt_init( glBindTexture( GL_TEXTURE_2D, gpubtt->tex_normals ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); - glTexImage2D( GL_TEXTURE_2D, 0, GL_RGB, ohm->hm.width, ohm->hm.height, 0, GL_RGB, GL_FLOAT, normals ); + glTexImage2D( GL_TEXTURE_2D, 0, GL_RGB32F, ohm->hm.width, ohm->hm.height, 0, GL_RGB, GL_FLOAT, normals ); glBindVertexArray( 0 );