Skip to content

Commit

Permalink
Remove spookyball from main sample list and fix formatting of reverse…
Browse files Browse the repository at this point in the history
…-z sample description
  • Loading branch information
toji committed Mar 8, 2024
1 parent ad7d067 commit 9c58439
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 10 additions & 8 deletions sample/reversedZ/meta.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
export default {
name: 'Reversed Z',
description: `This example shows the use of reversed z technique for better utilization of depth buffer precision.
The left column uses regular method, while the right one uses reversed z technique.
Both are using depth32float as their depth buffer format. A set of red and green planes are positioned very close to each other.
Higher sets are placed further from camera (and are scaled for better visual purpose).
To use reversed z to render your scene, you will need depth store value to be 0.0, depth compare function to be greater,
and remap depth range by multiplying an additional matrix to your projection matrix.
Related reading:
https://developer.nvidia.com/content/depth-precision-visualized
https://web.archive.org/web/20220724174000/https://thxforthefish.com/posts/reverse_z/
The left column uses regular method, while the right one uses reversed z technique.
Both are using depth32float as their depth buffer format. A set of red and green planes are positioned very close to each other.
Higher sets are placed further from camera (and are scaled for better visual purpose).
To use reversed z to render your scene, you will need depth store value to be 0.0, depth compare function to be greater,
and remap depth range by multiplying an additional matrix to your projection matrix.
Related reading:
- https://developer.nvidia.com/content/depth-precision-visualized
- https://web.archive.org/web/20220724174000/
- https://thxforthefish.com/posts/reverse_z/
`,
filename: __DIRNAME__,
sources: [
Expand Down
1 change: 0 additions & 1 deletion src/samples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export const pageCategories: PageCategory[] = [
samplerParameters,
reversedZ,
renderBundles,
spookyball,
},
},

Expand Down

0 comments on commit 9c58439

Please sign in to comment.