Browse Source

Set "autoShrink" for dirlight to true by default

ShiroSmith 5 năm trước cách đây
mục cha
commit
2673a3c7f1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      h3d/pass/DirShadowMap.hx

+ 1 - 1
h3d/pass/DirShadowMap.hx

@@ -9,7 +9,7 @@ class DirShadowMap extends Shadows {
 	var mergePass = new h3d.pass.ScreenFx(new h3d.shader.MinMaxShader());
 
 	// Shrink the frustum of the light to the bounds containing all visible objects
-	public var autoShrink = false;
+	public var autoShrink = true;
 	// Clamp the zFar of the frustum of the camera for bounds calculation
 	public var maxDist = -1.0;
 	// Clamp the zNear of the frustum of the camera for bounds calculation