From 8a28846fe88a726885f3bf54c7afdcdef071dbb9 Mon Sep 17 00:00:00 2001 From: goynov Date: Fri, 28 Nov 2025 17:50:00 +0200 Subject: [PATCH] make texts more readable --- src/components/InteractiveObjects/TextObject.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/InteractiveObjects/TextObject.js b/src/components/InteractiveObjects/TextObject.js index 838bb5f..f00d524 100644 --- a/src/components/InteractiveObjects/TextObject.js +++ b/src/components/InteractiveObjects/TextObject.js @@ -1,4 +1,4 @@ -import { MeshStandardMaterial, Color, Vector3, DoubleSide } from "three"; +import { MeshBasicMaterial, Color, Vector3, DoubleSide } from "three"; import { Text } from "troika-three-text"; import { assignParams } from "@/lib/MeshUtils"; @@ -21,9 +21,9 @@ class TextObject { //txt.outlineBlur = '50%'; txt.color = new Color(0x0); assignParams(txt, obj) - let m = new MeshStandardMaterial({ - roughness: .73, - metalness: .37, + let m = new MeshBasicMaterial({ + // roughness: .73, + // metalness: .37, side: DoubleSide }); txt.material = m;