Crate depth_offset
source ·Expand description
Depth offset and depth precision comparison test scene.
Rectangles are at close distance to each other in the z==0 plane. Rects on the left use “real” depth values, rects on the right use depth offset. You should see the least saturated rects in front of more saturated rects.
Press arrow up/down to increase/decrease the distance of the camera to the z==0 plane in tandem with the scale of the rectangles. Press arrow left/right to increase/decrease the near plane distance.
Modules§
- Example framework
Structs§
- Render2D 🔒
Functions§
- main 🔒