I have a ball (1) that is inside the box (2).
I want to render the scene so that the ball can be seen. But not with the transparent walls of the box (3). I want the ball to be visible through the opaque walls (4).
I see such a solution: render the ball and the box separately. Then lay a translucent ball on the box. But I do not know how to do it.
I can render the box, reset the depth buffer and render the ball. But in this case the ball will be on top of the box and the walls of the box in front of the ball are not visible.
Maybe I should use EffectComposer.
Is it possible to do this?