make texts more readable

This commit is contained in:
2025-11-28 17:50:00 +02:00
parent 9f5b58abf9
commit 8a28846fe8
@@ -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;