Skip to content

Commit

Permalink
Flip debug depth texture rendering in examples (#5436)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed Jun 23, 2023
1 parent 2b91096 commit c9b682d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/ground-fog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class GroundFogExample {
material.setParameter('uSoftening', data.get('data.softness') ? 50 : 1000);

// debug rendering of the deptht texture in the corner
app.drawDepthTexture(0.7, -0.7, 0.5, 0.5);
app.drawDepthTexture(0.7, -0.7, 0.5, -0.5);
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/post-effects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class PostEffectsExample {
// display the depth texture if it was rendered
if (data.get('scripts.bokeh.enabled') || data.get('scripts.ssao.enabled')) {
// @ts-ignore engine-tsd
app.drawDepthTexture(0.7, -0.7, 0.5, 0.5);
app.drawDepthTexture(0.7, -0.7, 0.5, -0.5);
}
});

Expand Down

0 comments on commit c9b682d

Please sign in to comment.