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Β§

StructsΒ§

FunctionsΒ§