Browse Source

Fix shadow map disposing default depth buffer.

clementlandrin 2 years ago
parent
commit
fe4974d928
1 changed files with 0 additions and 1 deletions
  1. 0 1
      h3d/pass/PointShadowMap.hx

+ 0 - 1
h3d/pass/PointShadowMap.hx

@@ -29,7 +29,6 @@ class PointShadowMap extends Shadows {
 		lightCamera.screenRatio = 1.0;
 		lightCamera.screenRatio = 1.0;
 		lightCamera.fovY = 90;
 		lightCamera.fovY = 90;
 		shader = pshader = new h3d.shader.PointShadow();
 		shader = pshader = new h3d.shader.PointShadow();
-		depth = h3d.mat.Texture.getDefaultDepth();
 
 
 		faceMask.set(Front);
 		faceMask.set(Front);
 		faceMask.set(Back);
 		faceMask.set(Back);