Unity-Technologies / 2d-pixel-perfect

Pixel Perfect Camera
Other
243 stars 30 forks source link

2 Camera setup -- "Upscale Render Texture" w/ Culling Mask above Basic 3D Camera #11

Open awesomez opened 5 years ago

awesomez commented 5 years ago

See the images:

Disabled "Upscale Render Texture": issue_pixel1 Enabled "Upscale Render Texture": issue_pixel2

Bomberman is on a Layer named "PIXELS" and I am trying to display him (using the "Upscale Render Texture" feature) downsampled on top of the standard 3D camera rendering. The Layer named "PIXELS" is excluded from the standard camera's rendering so that it appears on top. The only object on that layer is Bomberman, but I want him downsampled and upscaled back to the way he was (prior to being downsampled).

I want to be able to use the pixelated rendering of the 3D object as an overlay on the normal 3d background.

The problem is that the BACKGROUND camera (PixelCamera_BG) is not returned to its original perspective settings (or something?) -- meaning the background camera is not displayed in the correct perspective suddenly when "Upscale Render Texture" is enabled. When this is disabled, I get the BG in the correct perspective, but no downsampled pixels.