Renderer · const

DEPTH_FORMAT

The scene depth format.

Explained in Hello world.

const DEPTH_FORMAT: GPUTextureFormat
import { DEPTH_FORMAT } from '@driftengine/core';

In depth

Float is half of reversed-Z and the half that is easy to forget. Reversing a 24-bit unorm buffer moves the precision around and does not create any; the gain comes from a float's exponent having room near zero, which is where reversing puts the far plane.