make texts more readable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user