Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Apr 14, 2021
1 parent 97390c5 commit 8f7f439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h3d/pass/DirShadowMap.hx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class DirShadowMap extends Shadows {

// Intersect with frustum bounds
var cameraBounds = new h3d.col.Bounds();
var zMin = minDist < 0 ? 1.0 : ctx.camera.distanceToDepth(minDist);
var zMin = minDist < 0 ? 0.0 : ctx.camera.distanceToDepth(minDist);
var zMax = maxDist < 0 ? 1.0 : ctx.camera.distanceToDepth(maxDist);
for( pt in ctx.camera.getFrustumCorners(zMax, zMin) ) {
pt.transform(camera.mcam);
Expand Down

0 comments on commit 8f7f439

Please sign in to comment.