Search Unity

Pixel-perfect (Experimental) in URP does not upscale the texture

Discussion in '2D' started by IggyZuk, Apr 26, 2021.

  1. IggyZuk

    IggyZuk

    Joined:
    Jan 17, 2015
    Posts:
    43
    No matter what I do, the upscaling just doesn't seem to work.
    I'm trying to have rotated pixel-perfect sprites like these:



    I've tried 2020.x, and 2021.1.4f
    Universal RP 11.0.0

    Does anyone have ideas?
     
  2. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    do you have an image of the game windows result in 2020.x URP with your camera settings?
     
  3. IggyZuk

    IggyZuk

    Joined:
    Jan 17, 2015
    Posts:
    43
    Hey, sorry for the delay.
    I don't think I'm doing anything special, here are the settings on the camera:
    Screenshot 2021-05-02 at 2.24.29 am.png Screenshot 2021-05-02 at 2.24.10 am.png

    And this is what the game looks like, you can see the sprite is rotated and the pixels aren't upscaled to be pixel-perfect.

    Screenshot 2021-05-02 at 2.23.54 am.png
     
  4. IggyZuk

    IggyZuk

    Joined:
    Jan 17, 2015
    Posts:
    43
    I have found what was wrong.

    Apparently, you have to use the 2D Renderer (Experimental) in the URP Asset. This sadly means that you can't mix 2D with 3D rendering as the 2D renderer is limited.

    Apart from that, make sure that the URP asset in the Quality Settings matches the one in the Graphics Settings.