Skip to content

Commit

Permalink
Merge pull request #445 from guycalledfrank/fixdepthrender
Browse files Browse the repository at this point in the history
Fix depth map rendering
  • Loading branch information
guycalledfrank committed Nov 20, 2015
2 parents 33f8e10 + 80fa5f2 commit 4bca2ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scene/scene_forwardrenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ pc.extend(pc, function () {

var oldTarget = camera.getRenderTarget();
camera.setRenderTarget(camera._depthTarget);
this.setCamera(camera);

var oldBlending = device.getBlending();
device.setBlending(false);
Expand Down
1 change: 1 addition & 0 deletions src/scene/scene_scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ pc.extend(pc, function () {
};
meshInstance.updateKey();
meshInstance.cull = false;
meshInstance.drawToDepth = false;

var model = new pc.Model();
model.graph = node;
Expand Down

0 comments on commit 4bca2ad

Please sign in to comment.