This commit is contained in:
“李仕蓬”
2023-05-15 20:05:21 +08:00
parent b19b2e3c7f
commit 7d4302d4e5
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@
);
// draco decoder path is needed to load draco encoded models.
// gemini-viewer js sdk user maintains draco decoder code somewhere, and provides the path here.
const decoderPath = "demo/three/js/libs/draco/gltf/";
const decoderPath = "./demo/three/js/libs/draco/gltf/";
viewer.setDracoDecoderPath(decoderPath);
// loadProjectModel

View File

@ -55,7 +55,7 @@
// font file is needed for loading dxf
// const fontFiles = ["three/fonts/Microsoft_YaHei_Regular.typeface.json"];
const fontFiles = ["three/fonts/hztxt.shx", "three/fonts/simplex.shx"];
const fontFiles = ["./demo/three/fonts/hztxt.shx", "./demo/three/fonts/simplex.shx"];
await viewer.setFont(fontFiles);
// draco decoder path is needed to load draco encoded models.