You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/beginner/tutorial8-depth/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,4 +177,6 @@ And that's all we have to do! No shader code is needed! If you run the applicati
177
177
178
178
## Challenge
179
179
180
-
Since the depth buffer is a texture, we can sample it in the shader. Because it's a depth texture, we'll have to use the `sampler_comparison` uniform type and the `textureSampleCompare` function instead of `sampler` and `sampler2D` respectively. Create a bind group for the depth texture (or reuse an existing one), and render it to the screen.
180
+
Since the depth buffer is a texture, we can sample it in the shader.
181
+
Create a bind group for the depth texture (or reuse an existing one),
0 commit comments