ソースを参照

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