From e5b944539e02f782f45cdda5da6ec14f17e30018 Mon Sep 17 00:00:00 2001 From: xief <1789784602@qq.com> Date: Tue, 18 Jul 2023 09:19:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=8C=E9=9D=A2=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ColorPalette.ts | 4 ++-- src/SimpleBoard.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }