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

Cut out shader #28

Open
baptistepoligne opened this issue Feb 28, 2018 · 2 comments
Open

Cut out shader #28

baptistepoligne opened this issue Feb 28, 2018 · 2 comments

Comments

@baptistepoligne
Copy link

Hi,
Do you know any way to be makin the voumetric fog with a cut out shader ?
Since you said it need to write to depth texture and standard cutout doesn't.
Thanks !
Baptiste

@CarlLee
Copy link

CarlLee commented Mar 3, 2018

Implement a pass with tag "LightMode"="ShadowCaster", in that pass render your geometry in grey scale color using z coordinate, and do alpha testing to discard transparent pixels.
This way, when Unity renders depth pass, your material will appear with depth and transparent pixels discarded.

@baptistepoligne
Copy link
Author

Thank you very much CarlLee !

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