Camera far clipping gradient

   1615   3   1
User Avatar
Member
28 posts
Joined: May 2014
Offline
Hello. How can I get a similar result (like fog) using camera clipping?
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
There is a depth position output in the surface globals in mat context. You can remap it with fitrange and control the fading with a power function.

Attachments:
depth_fading.hipnc (196.9 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
28 posts
Joined: May 2014
Offline
Konstantin Magnus
There is a depth position output in the surface globals in mat context. You can remap it with fitrange and control the fading with a power function.
In my scene i have a volumes, so that method doesn't work(
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
Just replace the pbrdiffuse node with a volumeshadercore then.

Attachments:
depth_fading_volume.hipnc (228.9 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
  • Quick Links