Selaa lähdekoodia

configure the scene's default material

Raanan Weber 7 vuotta sitten
vanhempi
commit
8fd69cd02d
2 muutettua tiedostoa jossa 54 lisäystä ja 38 poistoa
  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;
     }
 }
 

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 50 - 38
Viewer/src/viewer/sceneManager.ts