- Home /
Shader that turns transparent when overlapping itself?
First off, I'm a total noob at writing shaders. In my search for the answer, I've run across a few different experiments that seem close, but still fundamentally different to what I am trying to achieve.
The Shader I'm trying to achieve is this: The shader uses a sprite (with transparency) as the texture map, and functions as a regular unlit shader, however when two objects using that same shader overlap, Any Transparent pixels in the overlap (regardless of depth) will cause any non-transparent pixels in the overlap not to render. An image below demonstrates what I mean more clearly. Any help from the shader gurus out there is greatly appreciated, cheers!
Your answer
Follow this Question
Related Questions
Subtractive Sprite Rendering? 0 Answers
Subtractive Shader 2 Answers
How to force the compilation of a shader in Unity? 5 Answers
Sprite texture incorrect 0 Answers
Transparency and texture atlases, shader calls affecting performance? 2 Answers