There is a need to mask or crop part of a 3D model in Libgdx by another model. Assuming the attached images, there are two boxes which I need to crop green box with red one on-the-fly (if the camera view changes the specific part should be cropped as well) and the result should be like the other image.Any help or suggestion would be appreciated. 

[![two models](https://i.stack.imgur.com/uBeB9.png)](https://i.stack.imgur.com/uBeB9.png)

[![cropped model](https://i.stack.imgur.com/B3pAd.png)](https://i.stack.imgur.com/B3pAd.png)