浏览代码

configure the scene's default material

Raanan Weber 7 年之前
父节点
当前提交
8fd69cd02d
共有 2 个文件被更改,包括 54 次插入38 次删除
  1. 4 0
      Viewer/src/configuration/configuration.ts
  2. 50 38
      Viewer/src/viewer/sceneManager.ts

+ 4 - 0
Viewer/src/configuration/configuration.ts

@@ -220,6 +220,10 @@ export interface ISceneConfiguration {
     disableCameraControl?: boolean;
     animationPropertiesOverride?: {
         [propName: string]: any;
+    };
+    defaultMaterial?: {
+        materialType: "standard" | "pbr";
+        [propName: string]: any;
     }
 }
 

文件差异内容过多而无法显示
+ 50 - 38
Viewer/src/viewer/sceneManager.ts