How to coculate depth use WorldPosition in fragmentShader?

hi
I am learning Ray Marching,I’m stuck in a problem.I don’t know how to coculate a pixel depth use worldPosition.

1 Like

@linsanda

Thank you for your post! While this is an interesting question, I am not sure if it is directly related to our API. Regardless, I will try to take some time over the next few days to learn more about this topic and get back to you. In the meantime, I suggest posting this question on a more general geospatial forum.

-Sam

Thank you for your reply,I think I should post this question to general forum.

1 Like

@linsanda

I agree - please don’t hesitate to reach out if you have any other questions or concerns.

-Sam