PostProcess materials: A better way to separate the sky?

Hi!
I would need to get a mask in post process material to separate the sky from the SceneTexture.
I came up with this solution, which mostly works but it has some side effects. In general, when there is something pure black in the diffuse channel, it also gets considered to be a sky.

Please, is there a better way to approach this challenge?

Thank you!

Bez názvu

Scene depth!
I didn’t realise that earlier.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.