Ver código fonte

Textures slightly updated

Temechon 8 anos atrás
pai
commit
e1fed0449e

Diferenças do arquivo suprimidas por serem muito extensas
+ 251 - 251
dist/preview release/inspector/babylon.inspector.bundle.js


+ 15 - 0
dist/preview release/inspector/babylon.inspector.d.ts

@@ -90,6 +90,21 @@ declare module INSPECTOR {
             properties: string[];
             format: (tex: BABYLON.Texture) => string;
         };
+        'MapTexture': {
+            type: typeof BABYLON.MapTexture;
+        };
+        'RenderTargetTexture': {
+            type: typeof BABYLON.RenderTargetTexture;
+        };
+        'DynamicTexture': {
+            type: typeof BABYLON.DynamicTexture;
+        };
+        'BaseTexture': {
+            type: typeof BABYLON.BaseTexture;
+        };
+        'FontTexture': {
+            type: typeof BABYLON.FontTexture;
+        };
         'ArcRotateCamera': {
             type: typeof BABYLON.ArcRotateCamera;
             properties: string[];

+ 33 - 9
dist/preview release/inspector/babylon.inspector.js

@@ -333,6 +333,21 @@ var INSPECTOR;
             ],
             format: function (tex) { return tex.name; }
         },
+        'MapTexture': {
+            type: BABYLON.MapTexture
+        },
+        'RenderTargetTexture': {
+            type: BABYLON.RenderTargetTexture
+        },
+        'DynamicTexture': {
+            type: BABYLON.DynamicTexture
+        },
+        'BaseTexture': {
+            type: BABYLON.BaseTexture
+        },
+        'FontTexture': {
+            type: BABYLON.FontTexture
+        },
         'ArcRotateCamera': {
             type: BABYLON.ArcRotateCamera,
             properties: [
@@ -360,6 +375,9 @@ var INSPECTOR;
             properties: [
                 'position',
                 'rotation',
+                'rotationQuaternion',
+                'cameraDirection',
+                'cameraRotation',
                 'ellipsoid',
                 'applyGravity',
                 'angularSensibility',
@@ -367,8 +385,19 @@ var INSPECTOR;
                 'keysDown',
                 'keysLeft',
                 'keysRight',
-                'onCollide',
-                'checkCollisions'
+                'checkCollisions',
+                'speed',
+                'lockedTarget',
+                'noRotationConstraint',
+                'fov',
+                'inertia',
+                'minZ', 'maxZ',
+                'layerMask',
+                'mode',
+                'orthoBottom',
+                'orthoTop',
+                'orthoLeft',
+                'orthoRight'
             ]
         },
         'Scene': {
@@ -693,13 +722,8 @@ var INSPECTOR;
         };
         /** Returns the list of properties to be displayed for this adapter */
         TextureAdapter.prototype.getProperties = function () {
-            var propertiesLines = [];
-            for (var _i = 0, _a = INSPECTOR.PROPERTIES['Texture'].properties; _i < _a.length; _i++) {
-                var dirty = _a[_i];
-                var infos = new INSPECTOR.Property(dirty, this._obj);
-                propertiesLines.push(new INSPECTOR.PropertyLine(infos));
-            }
-            return propertiesLines;
+            // Not used in this tab
+            return [];
         };
         TextureAdapter.prototype.getTools = function () {
             var tools = [];

Diferenças do arquivo suprimidas por serem muito extensas
+ 3 - 3
dist/preview release/inspector/babylon.inspector.min.js


+ 2 - 6
inspector/src/adapters/TextureAdapter.ts

@@ -23,12 +23,8 @@ module INSPECTOR {
 
         /** Returns the list of properties to be displayed for this adapter */
         public getProperties(): Array<PropertyLine> {
-            let propertiesLines: Array<PropertyLine> = [];
-            for (let dirty of PROPERTIES['Texture'].properties) {
-                let infos = new Property(dirty, this._obj);
-                propertiesLines.push(new PropertyLine(infos));
-            }
-            return propertiesLines;
+            // Not used in this tab
+            return [];
         }
 
         public getTools(): Array<AbstractTreeTool> {

+ 32 - 2
inspector/src/properties.ts

@@ -59,6 +59,21 @@ module INSPECTOR {
             ],
             format: (tex: BABYLON.Texture) => { return tex.name }
         },
+        'MapTexture': {
+            type: BABYLON.MapTexture
+        },
+        'RenderTargetTexture': {
+            type: BABYLON.RenderTargetTexture
+        },
+        'DynamicTexture': {
+            type: BABYLON.DynamicTexture
+        },
+        'BaseTexture': {
+            type: BABYLON.BaseTexture
+        },
+        'FontTexture': {
+            type: BABYLON.FontTexture
+        },
 
         'ArcRotateCamera': {
             type: BABYLON.ArcRotateCamera,
@@ -90,6 +105,10 @@ module INSPECTOR {
             properties: [
                 'position',
                 'rotation',
+                'rotationQuaternion',
+                'cameraDirection',
+                'cameraRotation',
+
                 'ellipsoid',
                 'applyGravity',
                 'angularSensibility',
@@ -97,8 +116,19 @@ module INSPECTOR {
                 'keysDown',
                 'keysLeft',
                 'keysRight',
-                'onCollide',
-                'checkCollisions'
+                'checkCollisions',
+                'speed',
+                'lockedTarget',
+                'noRotationConstraint',
+                'fov',
+                'inertia',
+                'minZ', 'maxZ',
+                'layerMask',
+                'mode',
+                'orthoBottom',
+                'orthoTop',
+                'orthoLeft',
+                'orthoRight'
             ]
         },