Cube in cube transparency problem

Hi! I’m trying to create a cube (solid color) and second cube which is slightly bigger with transparent color.
Right now the larger cube does change colors of the smaller one. Is there solution for preventing that? (e.g. grey color stays grey, not greenish if larger cube has green transparent color)

It seems to work fine in this live example:

Do you mind modifying it so the issue is demonstrated?

the problem is that I need the color of smaller one to stay unchanged . On example that you had linked color of smaller one gets greenish. Is there any option to manipulate with z-buffer? Maybe that would help

Sorry, I’ve misunderstood your issue.

But I’m not aware how this should be solved. The purpose of using transparency is to perform alpha blending. And that means honoring existing opaque pixel values.