-
Notifications
You must be signed in to change notification settings - Fork 138
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
How to make this work under orthogonal camera? #1
Comments
same here, bro. Any tip for us? |
Same here. Tried removing linearizing, etc, but messed up everything :D |
I've managed to convert it partially. Instead of always linearizing it (as it should be with a perspective camera):
Replace it with:
Also, in Orthographic view, we can't use screenPosition.w, so in:
Insert this, so we will have a computed depth:
And replace
with:
Cheers! :) |
@lee12321 @vadermemo I updated my code, because it had a bug. On machines without REVERSED_Z it always had a depth of 0 due to some typo. |
Have tried to make some change in the code, but failed to get the foam right under orthogonal camera.
The text was updated successfully, but these errors were encountered: