Search Unity

Question pixilation not working properly

Discussion in 'General Graphics' started by puddleglum, Sep 14, 2022.

  1. puddleglum

    puddleglum

    Joined:
    May 11, 2020
    Posts:
    412
    i have a game i want to be pixelated, and for the most part it works, but the higher the cameras resolution the blurrier it gets, the pixels being maped onto a render texture which is on a quad and the camera is pointed at the quad. the objective res is 480x270
    example:
    upload_2022-9-14_18-51-7.png 960x540 camera res
    upload_2022-9-14_18-52-26.png 3840x2160 camera res
    its not super noticable but when switching between them, the crisper one looks so much better, and would add alot to game feel and polishedness lol,
    what is causing this and how do i fix it?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,057
    How do you pixelate it?
    What code or shader is used? Post processing? Blit?
     
  3. puddleglum

    puddleglum

    Joined:
    May 11, 2020
    Posts:
    412
    i have a camera for the player obviously, that has its output texture set to a render texture asset
    upload_2022-9-15_15-41-13.png
    the render texture is also set to 480x270
    then the render texture is used on a material which is attached to a quad
    upload_2022-9-15_15-41-52.png
    you can see the scene in the bottem right and the quad in the top left
    then i have a camera set to look at the quad
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,057
    Do you use the pixel perfect camera setup?
     
  5. puddleglum

    puddleglum

    Joined:
    May 11, 2020
    Posts:
    412
    idk what that is so no
    srry
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,057
    Google it. Mainly used for 2d, but it makes sure no filtering of textures is happening. Now it probably has some