Skip to content

Commit

Permalink
Update depth-picking.en.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Feb 23, 2024
1 parent cc80189 commit 90cb61f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manual/content/demos/utility/depth-picking.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: single
collection: sections
title: Depth Picking
draft: true
draft: false
menu:
demos:
parent: utility
Expand Down Expand Up @@ -32,3 +32,6 @@ const worldPosition = ndc.unproject(camera);
If the depth picking mode is set to `DepthCopyMode.SINGLE`, only one depth value can be picked per frame. Calling the `readDepth` method multiple times per frame will then overwrite the picking coordinates and unresolved promises will be abandoned. Depth values are returned immediately when using `DepthCopyMode.FULL`, but this mode requires more bandwidth.

### External Resources

* https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels
* https://carmencincotti.com/2022-11-28/from-clip-space-to-ndc-space/

0 comments on commit 90cb61f

Please sign in to comment.