diff LightmapBuilder.cpp @ 2322:a59892f99d31

for draw terrain
author Ritor1
date Sun, 23 Mar 2014 19:55:59 +0600
parents 25f771e528f0
children 846e28e41fb4
line wrap: on
line diff
--- a/LightmapBuilder.cpp	Sat Mar 22 18:06:41 2014 +0600
+++ b/LightmapBuilder.cpp	Sun Mar 23 19:55:59 2014 +0600
@@ -1167,7 +1167,16 @@
         X = LODWORD(v61),
         v52 = v63,
         SLODWORD(v61) > v63) )*/
-  if (0)
+        v49 = pNormal;
+        Vec3_float_::NegDot(&v11->vWorldPosition, pNormal, a3);
+        *(float *)a3 = (double)v8->vPosition.x * v49->x
+                      + (double)v8->vPosition.y * v49->y
+                      + (double)v8->vPosition.z * v49->z + *a3;
+        v61 = *(float *)a3 + 6.7553994e15;
+        result = LODWORD(v61);
+        X = LODWORD(v61);
+        v52 = v63;
+  if ( SLODWORD(v61) > v63)
     return 0;
   v53 = pSlot;
   v60 = X;