瀏覽代碼

Version change

Deltakosh 12 年之前
父節點
當前提交
ca84fd0420

+ 2 - 0
Babylon/Materials/textures/babylon.cubeTexture.js

@@ -14,6 +14,8 @@
         if (!this._texture) {
             this._texture = scene.getEngine().createCubeTexture(rootUrl);
         }
+        
+        this.isCube = true;
     };
 
     BABYLON.CubeTexture.prototype = Object.create(BABYLON.BaseTexture.prototype);

+ 3 - 3
Babylon/Mesh/babylon.mesh.js

@@ -568,7 +568,7 @@
     };
 
     // Statics
-    BABYLON.Mesh.createBox = function (name, size, scene) {
+    BABYLON.Mesh.CreateBox = function (name, size, scene) {
         var box = new BABYLON.Mesh(name, [3, 3, 2], scene);
 
         var normals = [
@@ -621,7 +621,7 @@
         return box;
     };
 
-    BABYLON.Mesh.createSphere = function (name, segments, diameter, scene) {
+    BABYLON.Mesh.CreateSphere = function (name, segments, diameter, scene) {
         var sphere = new BABYLON.Mesh(name, [3, 3, 2], scene);
 
         var radius = diameter / 2;
@@ -673,7 +673,7 @@
     };
 
     // Plane
-    BABYLON.Mesh.createPlane = function (name, size, scene) {
+    BABYLON.Mesh.CreatePlane = function (name, size, scene) {
         var plane = new BABYLON.Mesh(name, [3, 3, 2], scene);
 
         var indices = [];

+ 0 - 1
Babylon/Tools/babylon.sceneLoader.js

@@ -8,7 +8,6 @@
         texture.hasAlpha = parsedTexture.hasAlpha;
         texture.level = parsedTexture.level;
         texture.coordinatesMode = parsedTexture.coordinatesMode;
-        texture.isCube = true;
 
         return texture;
     };

文件差異過大導致無法顯示
+ 2 - 2
babylon.js