소스 검색

- Fix dir light shadow map

ShiroSmith 7 년 전
부모
커밋
7365ada2c8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;
 			}
 		}