How to hide object in a cube hole?

I’ve setup up a scene here that might do what you are looking for: https://jsfiddle.net/1y3qbrn2/

The idea is to use two boxes. One box acts as a mask, the other renders its inner faces. Notice that I use a custom version of BoxBufferGeometry which does not generate its top faces.

2 Likes