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

Give the avatar pic a custom renderOrder too

parent 09786b26
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,11 @@ AFRAME.registerComponent("in-world-hud", {
this.bg = this.el.querySelector(".bg");
this.mic = this.el.querySelector(".mic");
this.nametag = this.el.querySelector(".username");
this.avatar = this.el.querySelector(".avatar");
this.nametag.object3DMap.text.material.depthTest = false;
this.nametag.object3DMap.text.renderOrder = 1;
this.mic.object3DMap.mesh.renderOrder = 1;
this.avatar.object3DMap.mesh.renderOrder = 1;
this.data.raycaster.components.line.material.depthTest = false;
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