Works around a precision bug that would cause the sloped floor in the E1L1 bathroom vent to have a wrong normal matrix.

git-svn-id: https://svn.eduke32.com/eduke32@1310 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-04-12 17:37:35 +00:00
parent 9152cf3b40
commit b47ad2bde2
1 changed files with 1 additions and 1 deletions

View File

@ -2404,7 +2404,7 @@ static void polymer_buffertoplane(GLfloat* buffer, GLushort* indices, in
norm = plane[0] * plane[0] + plane[1] * plane[1] + plane[2] * plane[2];
if (norm >= 5000) // hack to work around a precision issue with slopes
if (norm >= 15000) // hack to work around a precision issue with slopes
{
// normalize the normal/plane equation and calculate its plane norm
norm = -sqrt(norm);