Is there any way to pass and objects texture from it’s regular material to be used in a replacement shader? I basically need to get the objects alpha value from it’s main texture through for depth testing with the Edge Detection replacement shader so it can be used with transparent objects. I’ve been looking around and trying out various ideas but have come up with nothing.
1 Like
Any properties between original shader the replacemen shader are matched.
So if the original shader has _MainTex texture, the material has that texture set, then when you use _MainTex in your replacement shader, you’ll get that texture.
1 Like
Awesome, should help a lot. Thanks.