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

Not working with vertex displacement #23

Open
lisandroct opened this issue Apr 20, 2020 · 1 comment
Open

Not working with vertex displacement #23

lisandroct opened this issue Apr 20, 2020 · 1 comment

Comments

@lisandroct
Copy link

The decals are not correctly projected when the receiving object has vertex displacement applied. They are projected on the unmodified mesh and ignore the displacement.

@thnewlands
Copy link

I'm having a similar issue but with transparency. It seems like the approach that the author is taking is pretty similar to projectors (from the legacy pipeline): in a pass re-render everything with the projected (decal) material and then overlay that on the existing geometry.

Here's a pretty useful post on why this doesn't work with projectors at least.
https://forum.unity.com/threads/projector-onto-surface-that-has-alpha-cutout.555394/#post-3679798

I'm bummed -- it seems like the only good approach for vertex shaders and transparency with discarded fragments is to come up with a solution that uses a prerendered depth pass.

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

No branches or pull requests

2 participants