Sfoglia il codice sorgente

- Fix dir light shadow map

ShiroSmith 7 anni fa
parent
commit
7365ada2c8
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;
 			}
 		}