Raymarching and depth test
Asked Answered
E

3

0

Hello,

I'm working on a simple raymarcher and I could not manage to find why I get this deformation issue:

It could be caused by a wrong depth test or because of the way ray direction is computed (or something else?)

Here is the code in the fragment shader (res.w is the length of the ray from the camera position to the hit point):

Thanks in advance for you answer!

Expression answered 28/5, 2023 at 16:44 Comment(0)
E
0

Or is it because the depth is determined from the near plane and not the camera position?

Expression answered 28/5, 2023 at 19:9 Comment(0)
B
0

Keil your message got caught by the automoderator. I've approved it but it seems you also deleted your topic. If you want I can recover it/remove from deletion queue. Let me know.

Bibliotherapy answered 28/5, 2023 at 22:1 Comment(0)
E
0

Bibliotherapy
I restored the messages!
Can you make it visible? (It looks like it is hidden)
Thanks!

Expression answered 29/5, 2023 at 9:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.