Screenshot with translucent object

I am trying to take a screenshot of a translucent object.
The sphere behind the translucent cube is translucent as in the image, but must be opaque. Also, the overlapping translucent cubes would be more opaque.
How can I draw these correctly?

Example project: PlayCanvas | HTML5 Game Engine