I’ve updated your code here: https://jsfiddle.net/ux4ejgpf/
However, you will notice an inevitable side effect. The HTML text will always overlay the WebGL content. So there is not real depth sorting like in a pure WebGL scene.
I’ve updated your code here: https://jsfiddle.net/ux4ejgpf/
However, you will notice an inevitable side effect. The HTML text will always overlay the WebGL content. So there is not real depth sorting like in a pure WebGL scene.