Skip to content

Commit

Permalink
Smaller box, Don't write to depth
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshaughnessy committed Oct 2, 2020
1 parent f6f2724 commit 695c289
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/invisible-player-hover-thing.js
Expand Up @@ -3,8 +3,14 @@ AFRAME.registerComponent("invisible-player-hover-thing", {
this.el.setObject3D(
"invisible-player-hover-thing",
new THREE.Mesh(
new THREE.BoxGeometry(0.4, 1.6, 0.4),
new THREE.MeshBasicMaterial({ opacity: 0, transparent: true, color: 0x020202, side: THREE.BackSide })
new THREE.BoxGeometry(0.3, 0.8, 0.3),
new THREE.MeshBasicMaterial({
depthWrite: false,
opacity: 0.5,
transparent: true,
color: 0x020202,
side: THREE.BackSide
})
)
);
}
Expand Down

0 comments on commit 695c289

Please sign in to comment.