diff --git a/src/ColorPalette.ts b/src/ColorPalette.ts index 5a47042..e431c78 100644 --- a/src/ColorPalette.ts +++ b/src/ColorPalette.ts @@ -1,5 +1,5 @@ import * as THREE from 'three'; -import { LineBasicMaterial, MeshBasicMaterial, Color } from 'three'; +import { Color, LineBasicMaterial, MeshBasicMaterial } from 'three'; const ColorPalette = [ [255, 0, 0, 255], //----- 0 - lets make it red for an example //[255, 255, 255, 255],//----- 0 - ByBlock - White @@ -284,7 +284,7 @@ export class ColorMaterial { if (this.m_BasicMaterialMap.has(index)) return this.m_BasicMaterialMap.get(index); - let mat = new MeshBasicMaterial({ color: this.GetColor(index) }); + let mat = new MeshBasicMaterial({ color: this.GetColor(index), side: THREE.DoubleSide }); this.m_BasicMaterialMap.set(index, mat); return mat; } diff --git a/src/SimpleBoard.ts b/src/SimpleBoard.ts index 2c4f39b..9c2811c 100644 --- a/src/SimpleBoard.ts +++ b/src/SimpleBoard.ts @@ -178,7 +178,7 @@ export class SimpleBoard text.applyMatrix4(new Matrix4().setPosition(position)); } - text.CreateDoubleMesh(this._BoardType === BoardType.Layer); + // text.CreateDoubleMesh(this._BoardType === BoardType.Layer); return text; }