From 09786b2623f28bf95e3a6b12b58de52798dc9946 Mon Sep 17 00:00:00 2001
From: joni <johnfshaughnessy@gmail.com>
Date: Fri, 30 Mar 2018 18:47:08 +0200
Subject: [PATCH] Set the renderOrder of the items that have to appear on top
 to 1

---
 src/components/in-world-hud.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/components/in-world-hud.js b/src/components/in-world-hud.js
index e69cfd737..9a4fb10a6 100644
--- a/src/components/in-world-hud.js
+++ b/src/components/in-world-hud.js
@@ -8,6 +8,8 @@ AFRAME.registerComponent("in-world-hud", {
     this.mic = this.el.querySelector(".mic");
     this.nametag = this.el.querySelector(".username");
     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;
 
     const muted = this.el.sceneEl.is("muted");
-- 
GitLab