tda: That's how max sorts alphas, by which was created most recently. Your issue has nothing to do with the shader, rather with 3ds max. Unfortunately this means, if you don't carefully plan out how and when you make various alpha objects, then it will make a mess of things. Basically, you want to work from the inside of…