From b47ad2bde2dd30c39aba5b12301c9b1f354e139e Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 12 Apr 2009 17:37:35 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/polymer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index ea29bd139..088128171 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -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);