commit 7a8d6595d0f08334bdfc23a3b65f143070275391 parent 0028e9a94b34d1ff570fc212f2daaba5de8460fe Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Jul 2 21:48:37 +0300 Clamp normal maps. Hack to help with bleeding at seams Diffstat:
gpubtt.cc | | | 1 | + |
diff --git a/gpubtt.cc b/gpubtt.cc @@ -70,6 +70,7 @@ void gpubtt_init( normals_config.height = ohm->hm.height; normals_config.format = TEXFMT_RGB_FLOAT; normals_config.data = normals; + normals_config.wrap = TEXWRAP_CLAMP; // TODO: this is a hack and should be removed gpubtt->normal_map = renderer_new_texture( normals_config ); }