Skip to content
Snippets Groups Projects
Commit 09786b26 authored by joni's avatar joni
Browse files

Set the renderOrder of the items that have to appear on top to 1

parent 167c5746
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ AFRAME.registerComponent("in-world-hud", { ...@@ -8,6 +8,8 @@ AFRAME.registerComponent("in-world-hud", {
this.mic = this.el.querySelector(".mic"); this.mic = this.el.querySelector(".mic");
this.nametag = this.el.querySelector(".username"); this.nametag = this.el.querySelector(".username");
this.nametag.object3DMap.text.material.depthTest = false; this.nametag.object3DMap.text.material.depthTest = false;
this.nametag.object3DMap.text.renderOrder = 1;
this.mic.object3DMap.mesh.renderOrder = 1;
this.data.raycaster.components.line.material.depthTest = false; this.data.raycaster.components.line.material.depthTest = false;
const muted = this.el.sceneEl.is("muted"); const muted = this.el.sceneEl.is("muted");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment