]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
change q1bsp lightmap to vertex color conversion to scale colors
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Jan 2011 12:34:27 +0000 (12:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Jan 2011 12:34:27 +0000 (12:34 +0000)
correctly

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10737 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 9a0e7180d7af5a752e69c7563f77a127d13f50b5..72cc262415a804d555c9b594aec39503d41390f8 100644 (file)
@@ -11909,9 +11909,9 @@ void RSurf_PrepareVerticesForBatch(int batchneed, int texturenumsurfaces, const
                                                        }
                                                }
                                        }
-                                       c[0] >>= 15;
-                                       c[1] >>= 15;
-                                       c[2] >>= 15;
+                                       c[0] >>= 7;
+                                       c[1] >>= 7;
+                                       c[2] >>= 7;
                                        Vector4Set(rsurface.batchlightmapcolor4f + 4*numvertices, min(c[0], 255) * (1.0f / 255.0f), min(c[1], 255) * (1.0f / 255.0f), min(c[2], 255) * (1.0f / 255.0f), 1);
                                        numvertices++;
                                }