Skyline coordinates from Depth.

More
3 years 9 months ago #1 by dr777
Skyline coordinates from Depth. was created 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.

More
3 years 9 months ago - 3 years 9 months ago #2 by Marty McFly
Replied by Marty McFly on topic Skyline coordinates from Depth.
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.
Last edit: 3 years 9 months ago by Marty McFly.

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