Constructs a new depth downsampling material.
ProtectedfarThe current camera far plane value.
ProtectednearThe current camera near plane value.
Copies the settings of the given camera.
Updates the camera-related uniforms and macros.
A camera.
Updates the resolution uniform (XY = resolution, ZW = texelSize).
The width.
The height.
A depth downsampling shader material.
Based on an article by Eleni Maria Stea.
See
https://eleni.mutantstargoat.com/hikiko/depth-aware-upsampling-6