- Home /
Is it possible to apply antialiasing only to shallower depth?
Hi,
I'm doing a project on UNITY which involves applying antialiasing only to certain objects.
There are two superposed cameras and many identical cubic objects in the environment. One camera is at depth 0 and the other at depth 1. I want to apply antialiasing as post-processing effect but do it selectively. But the problem I run into is that when I add the AA effect to the camera at depth 1 I cannot accomplish this. What happens is that Camera at depth 1 with AA effect incorporates camera 2's view at depth 0 into its own view and since AA is a full-screen effect, the whole image including second camera's view is antialiased. Is there any way to prevent the camera at a shallower depth with AA effect to not apply antialiasing to the image at depth 0?
PS. The reason I have said "... incorporates camera 2's view at depth 0.." is that only certain objects in the image of camera 1 were culling-masked and the rest of the objects were left out; but those objects were culling-masked at the image of camera 2 at depth 0. So with "incorporation" all objects are somehow seen by camera 1 and camera 1 just antialises them all.
Your answer
Follow this Question
Related Questions
Anti-Aliasing Methods 1 Answer
How to apply antialiasing to UI text? 0 Answers
RenderTexture Antialiasing not working 0 Answers
GUI.depth factors 1 Answer