-
Notifications
You must be signed in to change notification settings - Fork 84
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
Comments
@udvaritibor is orthographic camera work ?thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
The text was updated successfully, but these errors were encountered: