I want to make one CSS2DObject be on top of another, or on top of all CSS2DObjects in the scene. Is there a way to do this?
I want to make one CSS2DObject be on top of another, or on top of all CSS2DObjects in the scene. Is there a way to do this?
Like with all other renderers, you can override the default z-order by defining Object3D.renderOrder. If you set the value to Infinity, the instance of CSS2DObject should be rendered on top of all others. Use this code:
label.renderOrder = Infinity;