I’m having difficulty with drawing overlapping semi-transparent cubes. Basically, I’d like to have two semi-transparent blue cubes which overlap seamlessly. If I use the built-in Alpha-Diffuse shader, then there is a dark spot where the cubes overlap (see attached picture).
Most of the solutions to this that I’ve seen say to enable ZWrite on the shader, but that doesn’t work in this case for some reason. Below is a copy of my attempt at enabling ZWrite, it didn’t get rid of the dark overlapping area. I’m not very famiilar with shaders, so any help would be appreciated.
Thanks for the link, I tried that shader and I believe it doesn’t work if the overlapping happens between different meshes. My guess is that what I’m trying to do is actually impossible, because the rendering pipeline doesn’t allow it. Unfortunately, I know enough about that pipeline to verify that.