FSR2Unity icon indicating copy to clipboard operation
FSR2Unity copied to clipboard

PPSTack integration and DoF.

Open Hanmen-lab opened this issue 5 months ago • 0 comments

While you have a custom PPStack is it possible to swap the stack with the custom in the Runtime? I have Unity 2018 game with built-in PPStack I want to integrate it correctly, but currently only have ordinary setup - helper + script. Or maybe is it possible to write just a PPStack FSR effect and integrate it in the correct order. Most troubles comes from DepthOfField. If the FSR applies on top of it, then sharpening will try to rape DoF Blur and create artifacts. Plus flickering. Same for the grain. But if you apply it BEFORE the DepthOfField CoC mask calculation will try to use default _CameraDepthTexture to create a mask, and probably will grab raw depth (without FSR)? and it will create inconsistency artifacts on the edges. I actually got an idea. Make custom DoF Effect, And render mask with a separate camera with applied FSR (only depth) and then use this texture to create CoC for the DoF. This would probably solve all the problem with an additional cost of mem. What do you think?

Hanmen-lab avatar Sep 13 '25 17:09 Hanmen-lab