I'm trying to get the camera pixel perfect in my game. I have tried the solution described in this video: https://www.youtube.com/watch?v=eN1zV0hlkso&t=7s In this video
I use the resolution 128 by 72.
- Set the main camera to orthographic and the size to half of the screen height, 36
- Duplicate the camera and make it a child of the main camera, set the value near to 0 and rename the camera to Virtual Camera.
- Create a new layer called Virtual Screen and set the culling mask of the virtual camera to virtual screen.
- Create a quad and make it a child object of Virtual Camera. Remove the Mesh Collider and turn ligt and reflection probes off. Rename the quad to virtual screen and set the layer to virtual screen. Set the size of the quad to the desired resolution, 128 by 72
- Create a render texture, set the size to the desired resolution and the filter mode to point.
- Create a material, set it to unlit/texture and the texture to the render texture created in step 5.
- Set the target texture of the main camera to the render texture and the material of the virtual screen to the material created in step 6.
With these steps 1 pixel is 1 unit. Is it possible to get a pixel perfect camera with for example 16 pixels per unit?