fix
This commit is contained in:
@ -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
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user