Browse Source

Set "autoShrink" for dirlight to true by default

ShiroSmith 5 years ago
parent
commit
2673a3c7f1
1 changed files with 1 additions and 1 deletions
  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());
 	var mergePass = new h3d.pass.ScreenFx(new h3d.shader.MinMaxShader());
 
 
 	// Shrink the frustum of the light to the bounds containing all visible objects
 	// 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
 	// Clamp the zFar of the frustum of the camera for bounds calculation
 	public var maxDist = -1.0;
 	public var maxDist = -1.0;
 	// Clamp the zNear of the frustum of the camera for bounds calculation
 	// Clamp the zNear of the frustum of the camera for bounds calculation