Просмотр исходного кода

Small issue with the minimal configuration fixed

Raanan Weber 7 лет назад
Родитель
Сommit
c69a526f0e
2 измененных файлов с 9 добавлено и 8 удалено
  1. 3 8
      Viewer/dist/domExample.html
  2. 6 0
      Viewer/src/configuration/types/minimal.ts

+ 3 - 8
Viewer/dist/domExample.html

@@ -15,20 +15,15 @@
     </head>
 
     <body>
-        <babylon extends="minimal" scene.default-camera="false">
-            <model url="https://playground.babylonjs.com/scenes/BoomBox.glb" title="GLB Model" subtitle="BabylonJS">
+        <babylon extends="minimal">
+            <model url="https://playground.babylonjs.com/scenes/BoomBox.glb">
+                <scaling x="10" y="10" z="10"></scaling>
             </model>
             <camera>
                 <behaviors>
                     <auto-rotate type="0"></auto-rotate>
                 </behaviors>
             </camera>
-            <lights>
-                <light1 type="1" shadow-enabled="true" position.y="0.5" direction.y="-1" intensity="4.5">
-                    <shadow-config use-blur-exponential-shadow-map="true" use-kernel-blur="true" blur-kernel="64" blur-scale="4">
-                    </shadow-config>
-                </light1>
-            </lights>
         </babylon>
         <script src="viewer.js"></script>
     </body>

+ 6 - 0
Viewer/src/configuration/types/minimal.ts

@@ -10,6 +10,12 @@ export let minimalConfiguration: ViewerConfiguration = {
         main: {
             html: require("../../../assets/templates/default/defaultTemplate.html")
         },
+        fillContainer: {
+            html: require("../../../assets/templates/default/fillContainer.html"),
+            params: {
+                disable: false
+            }
+        },
         loadingScreen: {
             html: require("../../../assets/templates/default/loadingScreen.html"),
             params: {