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 compatible with orthographic camera #2

Open
udvaritibor opened this issue May 19, 2020 · 1 comment
Open

Not compatible with orthographic camera #2

udvaritibor opened this issue May 19, 2020 · 1 comment

Comments

@udvaritibor
Copy link

Hi!

Great asset! One problem I've met is that it doesn't work with orthographic camera.

What I tried is changing this:

float opticalDepth = abs(LinearEyeDepth(fragDepth) - LinearEyeDepth(i.vertex.z));

to this:

float opticalDepth = fragDepth;

I'm not really good at shaders, this is just what others suggested on forums 😄

Could you help me please? Thanks in advance!

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
@udvaritibor and others