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 { Text } from "troika-three-text";
|
||||||
import { assignParams } from "@/lib/MeshUtils";
|
import { assignParams } from "@/lib/MeshUtils";
|
||||||
|
|
||||||
@@ -21,9 +21,9 @@ class TextObject {
|
|||||||
//txt.outlineBlur = '50%';
|
//txt.outlineBlur = '50%';
|
||||||
txt.color = new Color(0x0);
|
txt.color = new Color(0x0);
|
||||||
assignParams(txt, obj)
|
assignParams(txt, obj)
|
||||||
let m = new MeshStandardMaterial({
|
let m = new MeshBasicMaterial({
|
||||||
roughness: .73,
|
// roughness: .73,
|
||||||
metalness: .37,
|
// metalness: .37,
|
||||||
side: DoubleSide
|
side: DoubleSide
|
||||||
});
|
});
|
||||||
txt.material = m;
|
txt.material = m;
|
||||||
|
|||||||
Reference in New Issue
Block a user