Explorar el Código

- Fix dir light shadow map

ShiroSmith hace 7 años
padre
commit
7365ada2c8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      h3d/pass/DirShadowMap.hx

+ 1 - 0
h3d/pass/DirShadowMap.hx

@@ -94,6 +94,7 @@ class DirShadowMap extends Shadows {
 				if( pt.x > bounds.xMax ) bounds.xMax = pt.x;
 				if( pt.y < bounds.yMin ) bounds.yMin = pt.y;
 				if( pt.y > bounds.yMax ) bounds.yMax = pt.y;
+				if( pt.z > bounds.zMax ) bounds.zMax = pt.z;
 			}
 		}