Let say, i have a terrain shader. It’s made using Amplify Shader Editor, and below here is my terrain shader. Ignore the Landscape name LOL:smile:
And thanks to the internet, i can create such depth shader. I create ortogprhc camera placed on top of the terrain, assign a render texture, and use that depth shader as Replacement Shader, so my camera render the depth of the terrain only (using layer) to the render texture. Then, (in the rock shader) i’m gonna use this depth data as a mask to Lerp between the terrain texture and the rock texture. To do that, i guess i have to get the terrain final albedo data and declare it as a global variable. Here is simple pict of mask in my Rock shader. currently, its only showing the mask because the mask is connected to the debug node.
So my question is, how to declare final albedo of my terrain shader, as global variable, so the rock shader can use it? What about GrabPass?
Every help would be very appreciated