Renders the HBAO texture from the opaque depth texture.
The command encoder to record into.
View of the already-captured opaque (pre-transparent) depth texture.
Canvas width in pixels.
Canvas height in pixels.
Camera near plane.
Camera far plane.
The camera's raw perspective projection matrix.
The HBAO effect parameters (radius, intensity).
A view of the single-channel AO texture (R = occlusion factor), or null if unavailable.
Generates the HBAO texture for WebGPU -- same algorithm as AOPassGL, reading the opaque depth texture directly via
textureLoad(no sampler needed for atexture_depth_2d).