implement item renderer, add debug information to overlay

This commit is contained in:
LabyStudio
2022-02-05 16:18:31 +01:00
parent c8111badb9
commit 52427e610d
9 changed files with 160 additions and 33 deletions
@@ -3,7 +3,8 @@ window.Tessellator = class {
constructor() {
this.material = new THREE.MeshBasicMaterial({
vertexColors: THREE.VertexColors,
side: THREE.BackSide,
//side: THREE.BackSide,
side: THREE.DoubleSide,
transparent: true,
depthTest: true
});
@@ -66,6 +67,7 @@ window.Tessellator = class {
let mesh = new THREE.Mesh(geometry, this.material);
group.matrixAutoUpdate = false;
group.add(mesh);
return mesh;
}
}