Skyline coordinates from Depth.

  • Posts: 3
3 years 4 months ago #1 by dr777
Hello, guys.

Now, I am writing an Volmetric Fog shader for Reshade 3 and I have a question.
Is it possible to get "Y" coordinate of the scene's skyline using the information from the Depth buffer?

Please Log in or Create an account to join the conversation.

  • Posts: 1221
3 years 4 months ago - 3 years 4 months ago #2 by Marty McFly
No. You can only know how far objects are away from you, but world space coordinates are not retrievable. Hence a volumetric fog is inefficient as the integral of the result can be done as a function itself.

Please Log in or Create an account to join the conversation.