Refracted Depth Issue
Posted: Mon Jan 14, 2019 5:56 pm
I'm Making a custom ocean shader and I'm having some issues with the depth.
My ocean looks like this at the moment
As you can see, the part of the character that is over the water, is showing in the refraction.
Now, with this nodes
I can get the depth, which looks like this
Then I can apply some refraction with this nodes
To have my depth look like this
Now the depth is refracted as the transparent effect, achieved through a grab screen color, with this nodes
Which again, looks like this
I need to get, somehow, a mask that looks like this
so that in that area, I could replace the refracted character with the real background.
To achieve the mask I thought I could get the difference from the refracted camera depth (which has the whole character, over and under water) and the refracted depth fade node (which has only the part of the character that is underwater).
the problem is that the following node doesn't have an UV input.
Being still fairly new to ASE, After a lot of failed attempts and researches, I still have no Idea how I can refract the depth fade output value...
I hope someone will be able to either help me to refract the depth fade output value, or help me find another way to find the mask I need to hide the above-water character.
My ocean looks like this at the moment
As you can see, the part of the character that is over the water, is showing in the refraction.
Now, with this nodes
I can get the depth, which looks like this
Then I can apply some refraction with this nodes
To have my depth look like this
Now the depth is refracted as the transparent effect, achieved through a grab screen color, with this nodes
Which again, looks like this
I need to get, somehow, a mask that looks like this
so that in that area, I could replace the refracted character with the real background.
To achieve the mask I thought I could get the difference from the refracted camera depth (which has the whole character, over and under water) and the refracted depth fade node (which has only the part of the character that is underwater).
the problem is that the following node doesn't have an UV input.
Being still fairly new to ASE, After a lot of failed attempts and researches, I still have no Idea how I can refract the depth fade output value...
I hope someone will be able to either help me to refract the depth fade output value, or help me find another way to find the mask I need to hide the above-water character.