ArcRotationCamera View/Projection Matrix Bug In WebGPU

The NDC range for the z component is 0…1 in WebGPU, not -1…1.

So you should directly use the value from the depth map and not do (d - 0.5) * 2.0. You have a IS_NDC_HALF_ZRANGE define that let you know the range is 0…1:

2 Likes