Archive 19/01/2023.

Changing depth rendertarget size breaks viewport

HaeferlKaffee

Changing the size of the depth rendertarget in any technique XML breaks the viewport result. Is this supposed to happen? Is there a better way to resize the depth image, ideally using nearest-neighbour interp?

Example: sizedivisor = “2 2”
broken

Bananaft

Are you sizedividing all render targets or just depth? If your pass is outputting multiple render targets they all have to be same size.

HaeferlKaffee

Well the default renderpaths only have one rendertarget, depth

Bananaft

Oh, yeah, there is also default rendertarget. So you should add an “rgba” rendertarget (assuming, you are not going to use HDR, in that case “rgba16f”) set it as output for all scenepasses, then add quad command with CopyFramebuffer shader, that will read your lowres rendertarget, and output it to default rendertarget.

HaeferlKaffee

This seems to have worked, thanks

Bananaft

Wooo! gimme that tasty “solved” badge.