I’m looking for a transparent shader that avoids the issues of depth. What I’m finding is that when I apply a standard transparent shader to a complex object, the shader tries to fade all surfaces, but can’t figure out the true depth and location of all surfaces, and this leads to very odd visual errors. My needs are more simple. If I could find a shader that took the solid face to camera and then made that transparent - almost as a transparent billboard of the view, that would work fine for me.
Any suggestions on where to start.
Does such a shader exist?
Is there a direction someone can point me in?
Or is there a way to get around the issue of whatever algorithm is bein used to calculate transparency in the standard transparent shaders when applied to complex 3d objects?
Great! I’ll give Aras’ shader a try. I really don’t mind the “x-ray” look if it would render the “x-ray” with the proper depth. I’ll report back when I get back on the box.
Initial experiments show that this works well. I have already experimented with code that swaps shaders to transparent just before the start of a fade, as one of the big problems with transparent shaders is what it looks like on a complex object with the alpha solid at 1.0f. I may keep this, so non-fading object won’t need to be processed twice and they will only need the two passes applied during the fade…