Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[URP] Overlay camera also draws outline #55

Open
STARasGAMES opened this issue Feb 11, 2022 · 1 comment
Open

[URP] Overlay camera also draws outline #55

STARasGAMES opened this issue Feb 11, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@STARasGAMES
Copy link

URP has a camera stacking feature that allows rendering additional objects on top of the Base camera. For example, this could be used for rendering FPS weapons that don't clip with the environment.

The problem is that the overlay camera also draws the outline. This produces waste draw calls.
Moreover, in cases when the overlay camera has a different field of view player will see two(or more) separate outlines which is really weird.

As a solution OutlineFeature could have a setting that forces OutlinePass to render outline only for the base camera.
Whether a camera is base or overlay could be found by using this component:
https://docs.unity3d.com/Packages/[email protected]/manual/universal-additional-camera-data.html

@Arvtesh Arvtesh self-assigned this Feb 13, 2022
@Arvtesh Arvtesh added the enhancement New feature or request label Feb 13, 2022
@Arvtesh
Copy link
Owner

Arvtesh commented Feb 13, 2022

Hey, thanks for the report. Sounds like a useful feature for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants