Unity Fixed Resolution Render Feature
2025-12-28
In Unity URP, When you try to render to a RenderTexture, the camera will use the global Univeral Render Pipeline Asset's render scale parameter. Even though you are writing to a RenderTexture with a fixed resolution. This is problematic and causes blurring in the texture after it has been written to.
This is a simple render feature and pass that alleviates that by forcing the camera to render at a given resolution, no matter the render scale. This is very stupid.
2026-01-07 Edit
I have modified the render feature and pass to be able to automatically fetch the render texture width and height from the camera directly. This is much neater to use, and could be used for multiple cameras that are rendering to differently sized render textures.
public