Explorar o código

Moving samples to specific repo

Deltakosh %!s(int64=11) %!d(string=hai) anos
pai
achega
7d2fbb48e3
Modificáronse 100 ficheiros con 0 adicións e 1122 borrados
  1. BIN=BIN
      Samples/Assets/BandeauEmbleme.png
  2. BIN=BIN
      Samples/Assets/Bandeauhaut.png
  3. BIN=BIN
      Samples/Assets/BtnAbout.png
  4. BIN=BIN
      Samples/Assets/BtnDownload.png
  5. BIN=BIN
      Samples/Assets/CamDeviceOff.png
  6. BIN=BIN
      Samples/Assets/CamTouchOff.png
  7. BIN=BIN
      Samples/Assets/Download.png
  8. BIN=BIN
      Samples/Assets/Flare.png
  9. BIN=BIN
      Samples/Assets/Layer0_0.png
  10. BIN=BIN
      Samples/Assets/Layer1_0.png
  11. BIN=BIN
      Samples/Assets/Layer2_0.png
  12. BIN=BIN
      Samples/Assets/Logo.png
  13. BIN=BIN
      Samples/Assets/MonsterARun.png
  14. BIN=BIN
      Samples/Assets/Player.png
  15. BIN=BIN
      Samples/Assets/Sand.jpg
  16. BIN=BIN
      Samples/Assets/Snow.jpg
  17. BIN=BIN
      Samples/Assets/SpotDown.png
  18. BIN=BIN
      Samples/Assets/SpotLast.png
  19. BIN=BIN
      Samples/Assets/Tree.png
  20. BIN=BIN
      Samples/Assets/amiga.jpg
  21. BIN=BIN
      Samples/Assets/camera.png
  22. BIN=BIN
      Samples/Assets/gradient.png
  23. BIN=BIN
      Samples/Assets/grass.jpg
  24. BIN=BIN
      Samples/Assets/heightMap.png
  25. BIN=BIN
      Samples/Assets/kosh.jpg
  26. BIN=BIN
      Samples/Assets/lens4.png
  27. BIN=BIN
      Samples/Assets/lens5.png
  28. BIN=BIN
      Samples/Assets/logo50.png
  29. BIN=BIN
      Samples/Assets/mosaic.jpg
  30. BIN=BIN
      Samples/Assets/rock.jpg
  31. BIN=BIN
      Samples/Assets/wood.jpg
  32. BIN=BIN
      Samples/Scenes/Blender/Metal1.png
  33. BIN=BIN
      Samples/Scenes/Blender/MountainGrass_jpg72767116-efb0-4b79-a016-8ac4ef7561a1Larger.jpg
  34. 0 9
      Samples/Scenes/Blender/blender.babylon
  35. BIN=BIN
      Samples/Scenes/Blender/blender.blend
  36. BIN=BIN
      Samples/Scenes/Blender/chocolat.jpg
  37. BIN=BIN
      Samples/Scenes/Blender/concrete5.png
  38. BIN=BIN
      Samples/Scenes/Blender/paper.png
  39. BIN=BIN
      Samples/Scenes/Blender/paper02.png
  40. BIN=BIN
      Samples/Scenes/Blender/paper_bump.png
  41. BIN=BIN
      Samples/Scenes/Blender/wildtextures-old-wood-original-file-1280x853.jpg
  42. BIN=BIN
      Samples/Scenes/Customs/Ground.jpg
  43. 0 61
      Samples/Scenes/Customs/bones.js
  44. 0 20
      Samples/Scenes/Customs/bump_test.js
  45. 0 129
      Samples/Scenes/Customs/charting.js
  46. 0 40
      Samples/Scenes/Customs/fog_test.js
  47. BIN=BIN
      Samples/Scenes/Customs/heightMap.png
  48. 0 45
      Samples/Scenes/Customs/heightMap_test.js
  49. 0 39
      Samples/Scenes/Customs/lensFlares.js
  50. 0 77
      Samples/Scenes/Customs/lights_test.js
  51. 0 40
      Samples/Scenes/Customs/multimat.js
  52. BIN=BIN
      Samples/Scenes/Customs/normalMap.jpg
  53. 0 33
      Samples/Scenes/Customs/octree.js
  54. 0 140
      Samples/Scenes/Customs/physics.js
  55. 0 77
      Samples/Scenes/Customs/postprocessBloom.js
  56. 0 56
      Samples/Scenes/Customs/postprocessRefraction.js
  57. 0 25
      Samples/Scenes/Customs/postprocesses/compose.fragment.fx
  58. 0 29
      Samples/Scenes/Customs/postprocesses/downsample.fragment.fx
  59. BIN=BIN
      Samples/Scenes/Customs/refMap.jpg
  60. 0 78
      Samples/Scenes/Customs/shadows.js
  61. BIN=BIN
      Samples/Scenes/Customs/skybox/night_nx.jpg
  62. BIN=BIN
      Samples/Scenes/Customs/skybox/night_ny.jpg
  63. BIN=BIN
      Samples/Scenes/Customs/skybox/night_nz.jpg
  64. BIN=BIN
      Samples/Scenes/Customs/skybox/night_px.jpg
  65. BIN=BIN
      Samples/Scenes/Customs/skybox/night_py.jpg
  66. BIN=BIN
      Samples/Scenes/Customs/skybox/night_pz.jpg
  67. BIN=BIN
      Samples/Scenes/Customs/skybox/skybox_nx.jpg
  68. BIN=BIN
      Samples/Scenes/Customs/skybox/skybox_ny.jpg
  69. BIN=BIN
      Samples/Scenes/Customs/skybox/skybox_nz.jpg
  70. BIN=BIN
      Samples/Scenes/Customs/skybox/skybox_px.jpg
  71. BIN=BIN
      Samples/Scenes/Customs/skybox/skybox_py.jpg
  72. BIN=BIN
      Samples/Scenes/Customs/skybox/skybox_pz.jpg
  73. BIN=BIN
      Samples/Scenes/Customs/skybox/snow_nx.jpg
  74. BIN=BIN
      Samples/Scenes/Customs/skybox/snow_ny.jpg
  75. BIN=BIN
      Samples/Scenes/Customs/skybox/snow_nz.jpg
  76. BIN=BIN
      Samples/Scenes/Customs/skybox/snow_px.jpg
  77. BIN=BIN
      Samples/Scenes/Customs/skybox/snow_py.jpg
  78. BIN=BIN
      Samples/Scenes/Customs/skybox/snow_pz.jpg
  79. 0 223
      Samples/Scenes/Customs/test.js
  80. BIN=BIN
      Samples/Scenes/Dude/0.jpg
  81. BIN=BIN
      Samples/Scenes/Dude/1.jpg
  82. BIN=BIN
      Samples/Scenes/Dude/2.jpg
  83. BIN=BIN
      Samples/Scenes/Dude/3.jpg
  84. 0 1
      Samples/Scenes/Dude/Dude.babylon
  85. BIN=BIN
      Samples/Scenes/Espilit/Blanc.jpg
  86. BIN=BIN
      Samples/Scenes/Espilit/Blanc.png
  87. BIN=BIN
      Samples/Scenes/Espilit/Booklet.jpg
  88. BIN=BIN
      Samples/Scenes/Espilit/Booklet.png
  89. BIN=BIN
      Samples/Scenes/Espilit/BouteilleBlanc.jpg
  90. BIN=BIN
      Samples/Scenes/Espilit/BouteilleBlanc.png
  91. BIN=BIN
      Samples/Scenes/Espilit/BouteilleRouge.jpg
  92. BIN=BIN
      Samples/Scenes/Espilit/BouteilleRouge.png
  93. BIN=BIN
      Samples/Scenes/Espilit/ChaisesLightingMap.jpg
  94. BIN=BIN
      Samples/Scenes/Espilit/ChaisesLightingMap.png
  95. BIN=BIN
      Samples/Scenes/Espilit/ChaisesSpecMap.png
  96. BIN=BIN
      Samples/Scenes/Espilit/Chassis table CorbuLightingMap.jpg
  97. BIN=BIN
      Samples/Scenes/Espilit/Chassis table CorbuLightingMap.png
  98. BIN=BIN
      Samples/Scenes/Espilit/Ciel.jpg
  99. BIN=BIN
      Samples/Scenes/Espilit/Ciel.png
  100. 0 0
      Samples/Scenes/Espilit/Cuir.jpg

BIN=BIN
Samples/Assets/BandeauEmbleme.png


BIN=BIN
Samples/Assets/Bandeauhaut.png


BIN=BIN
Samples/Assets/BtnAbout.png


BIN=BIN
Samples/Assets/BtnDownload.png


BIN=BIN
Samples/Assets/CamDeviceOff.png


BIN=BIN
Samples/Assets/CamTouchOff.png


BIN=BIN
Samples/Assets/Download.png


BIN=BIN
Samples/Assets/Flare.png


BIN=BIN
Samples/Assets/Layer0_0.png


BIN=BIN
Samples/Assets/Layer1_0.png


BIN=BIN
Samples/Assets/Layer2_0.png


BIN=BIN
Samples/Assets/Logo.png


BIN=BIN
Samples/Assets/MonsterARun.png


BIN=BIN
Samples/Assets/Player.png


BIN=BIN
Samples/Assets/Sand.jpg


BIN=BIN
Samples/Assets/Snow.jpg


BIN=BIN
Samples/Assets/SpotDown.png


BIN=BIN
Samples/Assets/SpotLast.png


BIN=BIN
Samples/Assets/Tree.png


BIN=BIN
Samples/Assets/amiga.jpg


BIN=BIN
Samples/Assets/camera.png


BIN=BIN
Samples/Assets/gradient.png


BIN=BIN
Samples/Assets/grass.jpg


BIN=BIN
Samples/Assets/heightMap.png


BIN=BIN
Samples/Assets/kosh.jpg


BIN=BIN
Samples/Assets/lens4.png


BIN=BIN
Samples/Assets/lens5.png


BIN=BIN
Samples/Assets/logo50.png


BIN=BIN
Samples/Assets/mosaic.jpg


BIN=BIN
Samples/Assets/rock.jpg


BIN=BIN
Samples/Assets/wood.jpg


BIN=BIN
Samples/Scenes/Blender/Metal1.png


BIN=BIN
Samples/Scenes/Blender/MountainGrass_jpg72767116-efb0-4b79-a016-8ac4ef7561a1Larger.jpg


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 9
Samples/Scenes/Blender/blender.babylon


BIN=BIN
Samples/Scenes/Blender/blender.blend


BIN=BIN
Samples/Scenes/Blender/chocolat.jpg


BIN=BIN
Samples/Scenes/Blender/concrete5.png


BIN=BIN
Samples/Scenes/Blender/paper.png


BIN=BIN
Samples/Scenes/Blender/paper02.png


BIN=BIN
Samples/Scenes/Blender/paper_bump.png


BIN=BIN
Samples/Scenes/Blender/wildtextures-old-wood-original-file-1280x853.jpg


BIN=BIN
Samples/Scenes/Customs/Ground.jpg


+ 0 - 61
Samples/Scenes/Customs/bones.js

@@ -1,61 +0,0 @@
-var CreateBonesTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var light = new BABYLON.DirectionalLight("dir01", new BABYLON.Vector3(0, -0.5, -1.0), scene);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, new BABYLON.Vector3(0, 30, 0), scene);
-    camera.setPosition(new BABYLON.Vector3(20, 70, 120));
-    light.position = new BABYLON.Vector3(20, 150, 70);
-    camera.minZ = 10.0;
-
-    scene.ambientColor = new BABYLON.Color3(0.3, 0.3, 0.3);
-
-    // Ground
-    var ground = BABYLON.Mesh.CreateGround("ground", 1000, 1000, 1, scene, false);
-    var groundMaterial = new BABYLON.StandardMaterial("ground", scene);
-    groundMaterial.diffuseColor = new BABYLON.Color3(0.2, 0.2, 0.2);
-    groundMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    ground.material = groundMaterial;
-    ground.receiveShadows = true;
-
-    // Shadows
-    var shadowGenerator = new BABYLON.ShadowGenerator(1024, light);
-
-    // Meshes
-    BABYLON.SceneLoader.ImportMesh("Rabbit", "Scenes/Rabbit/", "Rabbit.babylon", scene, function (newMeshes, particleSystems, skeletons) {
-        var rabbit = newMeshes[1];
-        
-        rabbit.scaling = new BABYLON.Vector3(0.4, 0.4, 0.4);
-        shadowGenerator.getShadowMap().renderList.push(rabbit);
-
-        var rabbit2 = rabbit.clone("rabbit2");
-        var rabbit3 = rabbit.clone("rabbit2");
-
-        shadowGenerator.getShadowMap().renderList.push(rabbit2);
-        shadowGenerator.getShadowMap().renderList.push(rabbit3);
-
-        rabbit2.position = new BABYLON.Vector3(-50, 0, -20);
-        rabbit2.skeleton = rabbit.skeleton.clone("clonedSkeleton");
-
-        rabbit3.position = new BABYLON.Vector3(50, 0, -20);
-        rabbit3.skeleton = rabbit.skeleton.clone("clonedSkeleton2");
-
-        scene.beginAnimation(skeletons[0], 0, 100, true, 0.8);
-        scene.beginAnimation(rabbit2.skeleton, 73, 100, true, 0.8);
-        scene.beginAnimation(rabbit3.skeleton, 0, 72, true, 0.8);
-        
-        // Dude
-        BABYLON.SceneLoader.ImportMesh("him", "Scenes/Dude/", "Dude.babylon", scene, function (newMeshes2, particleSystems2, skeletons2) {
-            var dude = newMeshes2[0];
-            
-            for (var index = 0; index < newMeshes2.length; index++) {
-                shadowGenerator.getShadowMap().renderList.push(newMeshes2[index]);
-            }
-
-            dude.rotation.y = Math.PI;
-            dude.position = new BABYLON.Vector3(0, 0, -80);
-                
-            scene.beginAnimation(skeletons2[0], 0, 100, true, 1.0);
-        });
-    });
-
-    return scene;
-};

+ 0 - 20
Samples/Scenes/Customs/bump_test.js

@@ -1,20 +0,0 @@
-var CreateBumpScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
-    var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(20, 100, 2), scene);
-    var sphere = BABYLON.Mesh.CreateSphere("Sphere", 16, 3, scene);
-    var material = new BABYLON.StandardMaterial("kosh", scene);
-    material.bumpTexture = new BABYLON.Texture("Scenes/Customs/normalMap.jpg", scene);
-    material.diffuseColor = new BABYLON.Color3(1, 0, 0);
-    
-    sphere.material = material;
-    
-    camera.setPosition(new BABYLON.Vector3(-5, 5, 0));
-
-    // Animations
-    scene.registerBeforeRender(function() {
-        sphere.rotation.y += 0.02;
-    });
-
-    return scene;
-};

+ 0 - 129
Samples/Scenes/Customs/charting.js

@@ -1,129 +0,0 @@
-var CreateChartingTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var light = new BABYLON.DirectionalLight("dir01", new BABYLON.Vector3(0, -0.5, 1.0), scene);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
-    camera.setPosition(new BABYLON.Vector3(20, 70, -100));
-    light.position = new BABYLON.Vector3(0, 25, -50);
-    
-    // Data
-    var scale = 0.6;
-    var operatingSystem_Series = [
-        { label: "Macintosh", value: 12, color: new BABYLON.Color3(0, 1, 0) },
-        { label: "Windows", value: 77, color: new BABYLON.Color3(1, 0, 0) },
-        { label: "Linux", value: 4, color: new BABYLON.Color3(1, 0, 1) },
-        { label: "iOS", value: 3, color: new BABYLON.Color3(1, 1, 0) },
-        { label: "Android", value: 2, color: new BABYLON.Color3(0, 0, 1) },
-        { label: "Win Phone", value: 1, color: new BABYLON.Color3(1, 1, 1) }
-    ];
-    
-    var browsers_Series = [
-        { label: "IE", value: 32, color: new BABYLON.Color3(0, 0, 1) },
-        { label: "Chrome", value: 28, color: new BABYLON.Color3(1, 0, 0) },
-        { label: "Firefox", value: 16, color: new BABYLON.Color3(1, 0, 1) },
-        { label: "Opera", value: 14, color: new BABYLON.Color3(1, 1, 0) },
-        { label: "Safari", value: 10, color: new BABYLON.Color3(0, 1, 1) }        
-    ];
-    
-    var playgroundSize = 100;
-    // Background
-    var background = BABYLON.Mesh.CreatePlane("background", playgroundSize, scene, false);
-    background.material = new BABYLON.StandardMaterial("background", scene);
-    background.scaling.y = 0.5;
-    background.position.z = playgroundSize / 2 - 0.5;
-    background.position.y = playgroundSize / 4;
-    background.receiveShadows = true;
-    var backgroundTexture = new BABYLON.DynamicTexture("dynamic texture", 512, scene, true);
-    background.material.diffuseTexture = backgroundTexture;
-    background.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    background.material.backFaceCulling = false;
-
-    backgroundTexture.drawText("Eternalcoding", null, 80, "bold 70px Segoe UI", "white", "#555555");
-    backgroundTexture.drawText("- browsers statistics -", null, 250, "35px Segoe UI", "white", null);
-    //background.material.reflectionTexture = new BABYLON.MirrorTexture("mirror", 1024, scene, true);
-    //background.material.reflectionTexture.mirrorPlane = new BABYLON.Plane(0, 0, 1.0, -playgroundSize / 2 + 0.5);
-    //background.material.reflectionTexture.level = 0.5;
-
-    // Ground    
-    var ground = BABYLON.Mesh.CreateGround("ground", playgroundSize, playgroundSize, 1, scene, false);
-    var groundMaterial = new BABYLON.StandardMaterial("ground", scene);
-    groundMaterial.diffuseColor = new BABYLON.Color3(0.5, 0.5, 0.5);
-    groundMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    ground.material = groundMaterial;
-    ground.receiveShadows = true;
-    ground.position.y = -0.1;
-    //background.material.reflectionTexture.renderList.push(ground);
-    
-    var shadowGenerator = new BABYLON.ShadowGenerator(1024, light);
-    
-    var createSeries = function (series) {
-        var margin = 2;
-        var offset = playgroundSize / (series.length) - margin;
-        var x = -playgroundSize / 2 + offset / 2;
-
-        for (var index = 0; index < series.length; index++) {
-            var data = series[index];
-
-            var bar = BABYLON.Mesh.CreateBox(data.label, 1.0, scene, false);
-            bar.scaling = new BABYLON.Vector3(offset / 2.0, 0, offset / 2.0);
-            bar.position.x = x;
-            bar.position.y = 0;
-            
-            // Animate a bit
-            var animation = new BABYLON.Animation("anim", "scaling", 30, BABYLON.Animation.ANIMATIONTYPE_VECTOR3);
-            animation.setKeys([
-                { frame: 0, value: new BABYLON.Vector3(offset / 2.0, 0, offset / 2.0) },
-                { frame: 100, value: new BABYLON.Vector3(offset / 2.0, data.value * scale, offset / 2.0) }]);
-            bar.animations.push(animation);
-            
-            animation = new BABYLON.Animation("anim2", "position.y", 30, BABYLON.Animation.ANIMATIONTYPE_FLOAT);
-            animation.setKeys([
-                { frame: 0, value: 0 },
-                { frame: 100, value: (data.value * scale) / 2 }]);
-            bar.animations.push(animation);            
-            scene.beginAnimation(bar, 0, 100, false, 2.0);
-
-            // Material
-            bar.material = new BABYLON.StandardMaterial(data.label + "mat", scene);
-            bar.material.diffuseColor = data.color;
-            bar.material.emissiveColor = data.color.scale(0.3);
-            bar.material.specularColor = new BABYLON.Color3(0, 0, 0);
-
-            // Shadows
-            shadowGenerator.getShadowMap().renderList.push(bar);
-            
-            // Mirror
-          //  background.material.reflectionTexture.renderList.push(bar);
-            
-            // Legend
-            var barLegend = BABYLON.Mesh.CreateGround(data.label + "Legend", playgroundSize / 2, offset * 2, 1, scene, false);
-            barLegend.position.x = x;
-            barLegend.position.z = -playgroundSize / 4;
-            barLegend.rotation.y = Math.PI / 2;
-            
-            barLegend.material = new BABYLON.StandardMaterial(data.label + "LegendMat", scene);
-            var barLegendTexture = new BABYLON.DynamicTexture("dynamic texture", 512, scene, true);
-            barLegendTexture.hasAlpha = true;
-            barLegend.material.diffuseTexture = barLegendTexture;
-            barLegend.material.emissiveColor = new BABYLON.Color3(0.4, 0.4, 0.4);
-            
-            var size = barLegendTexture.getSize();
-            barLegendTexture.drawText(data.label + " (" + data.value + "%)", 80, size.height / 2 + 30, "bold 50px Segoe UI", "white", "transparent");
-         //   background.material.reflectionTexture.renderList.push(barLegend);
-            
-            // Going next
-            x += offset + margin;
-        }
-    };
-
-    createSeries(browsers_Series);
-
-    // Limit camera
-    camera.lowerAlphaLimit = Math.PI;
-    camera.upperAlphaLimit = 2 * Math.PI;
-    camera.lowerBetaLimit = 0.1;
-    camera.upperBetaLimit = (Math.PI / 2) * 0.99;
-    camera.lowerRadiusLimit = 5;
-    camera.upperRadiusLimit = 150;
-
-    return scene;
-};

+ 0 - 40
Samples/Scenes/Customs/fog_test.js

@@ -1,40 +0,0 @@
-var CreateFogScene = function(engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.FreeCamera("Camera", new BABYLON.Vector3(0, 0, -20), scene);
-    var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(20, 100, 2), scene);
-    var sphere0 = BABYLON.Mesh.CreateSphere("Sphere0", 16, 3, scene);
-    var sphere1 = BABYLON.Mesh.CreateSphere("Sphere1", 16, 3, scene);
-    var sphere2 = BABYLON.Mesh.CreateSphere("Sphere2", 16, 3, scene);
-
-    var material0 = new BABYLON.StandardMaterial("mat0", scene);
-    material0.diffuseColor = new BABYLON.Color3(1, 0, 0);
-    sphere0.material = material0;
-    sphere0.position = new BABYLON.Vector3(-10, 0, 0);
-
-    var material1 = new BABYLON.StandardMaterial("mat1", scene);
-    material1.diffuseColor = new BABYLON.Color3(1, 1, 0);
-    sphere1.material = material1;
-
-    var material2 = new BABYLON.StandardMaterial("mat2", scene);
-    material2.diffuseColor = new BABYLON.Color3(1, 0, 1);
-    sphere2.material = material2;
-    sphere2.position = new BABYLON.Vector3(10, 0, 0);
-    
-    camera.setTarget(new BABYLON.Vector3(0, 0, 0));
-    
-    // Fog
-    scene.fogMode = BABYLON.Scene.FOGMODE_EXP;
-    scene.fogDensity = 0.1;
-
-    // Animations
-    var alpha = 0;
-    scene.registerBeforeRender(function () {
-        sphere0.position.z = 4 * Math.cos(alpha);
-        sphere1.position.z = 4 * Math.sin(alpha);
-        sphere2.position.z = 4 * Math.cos(alpha);
-
-        alpha += 0.1;
-    });
-
-    return scene;
-};

BIN=BIN
Samples/Scenes/Customs/heightMap.png


+ 0 - 45
Samples/Scenes/Customs/heightMap_test.js

@@ -1,45 +0,0 @@
-var CreateHeightMapTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
-    var sun = new BABYLON.PointLight("Omni0", new BABYLON.Vector3(60, 100, 10), scene);
-
-    camera.setPosition(new BABYLON.Vector3(-20, 20, 0));
-    
-    // Skybox
-    var skybox = BABYLON.Mesh.CreateBox("skyBox", 100.0, scene);
-    var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);
-    skyboxMaterial.backFaceCulling = false;
-    skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("Scenes/Customs/skybox/skybox", scene);
-    skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
-    skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    skybox.material = skyboxMaterial;
-    
-    // Ground
-    var ground = BABYLON.Mesh.CreateGroundFromHeightMap("ground", "Scenes/Customs/heightMap.png", 100, 100, 100, 0, 10, scene, false);
-    var groundMaterial = new BABYLON.StandardMaterial("ground", scene);
-    groundMaterial.diffuseTexture = new BABYLON.Texture("Scenes/Customs/ground.jpg", scene);
-    groundMaterial.diffuseTexture.uScale = 6;
-    groundMaterial.diffuseTexture.vScale = 6;
-    groundMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    ground.position.y = -2.05;
-    ground.material = groundMaterial;
-
-    var beforeRenderFunction = function() {
-        // Camera
-        if (camera.beta < 0.1)
-            camera.beta = 0.1;
-        else if (camera.beta > (Math.PI / 2) * 0.9)
-            camera.beta = (Math.PI / 2) * 0.9;
-
-        if (camera.radius > 30)
-            camera.radius = 30;
-
-        if (camera.radius < 5)
-            camera.radius = 5;
-    };
-
-    scene.registerBeforeRender(beforeRenderFunction);
-
-    return scene;
-};

+ 0 - 39
Samples/Scenes/Customs/lensFlares.js

@@ -1,39 +0,0 @@
-var CreateLensFlaresTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
-    var light0 = new BABYLON.PointLight("Omni0", new BABYLON.Vector3(21.84, 50, -28.26), scene);
-
-    camera.alpha = 2.8;
-    camera.beta = 2.25;
-    
-    // Creating light sphere
-    var lightSphere0 = BABYLON.Mesh.CreateSphere("Sphere0", 16, 0.5, scene);
-    
-    lightSphere0.material = new BABYLON.StandardMaterial("white", scene);
-    lightSphere0.material.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    lightSphere0.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    lightSphere0.material.emissiveColor = new BABYLON.Color3(1, 1, 1);
-
-    lightSphere0.position = light0.position;
-    
-    var lensFlareSystem = new BABYLON.LensFlareSystem("lensFlareSystem", light0, scene);
-    var flare00 = new BABYLON.LensFlare(0.2, 0, new BABYLON.Color3(1, 1, 1), "Assets/lens5.png", lensFlareSystem);
-    var flare01 = new BABYLON.LensFlare(0.5, 0.2, new BABYLON.Color3(0.5, 0.5, 1), "Assets/lens4.png", lensFlareSystem);
-    var flare02 = new BABYLON.LensFlare(0.2, 1.0, new BABYLON.Color3(1, 1, 1), "Assets/lens4.png", lensFlareSystem);
-    var flare03 = new BABYLON.LensFlare(0.4, 0.4, new BABYLON.Color3(1, 0.5, 1), "Assets/Flare.png", lensFlareSystem);
-    var flare04 = new BABYLON.LensFlare(0.1, 0.6, new BABYLON.Color3(1, 1, 1), "Assets/lens5.png", lensFlareSystem);
-    var flare05 = new BABYLON.LensFlare(0.3, 0.8, new BABYLON.Color3(1, 1, 1), "Assets/lens4.png", lensFlareSystem);
-
-
-    // Skybox
-    var skybox = BABYLON.Mesh.CreateBox("skyBox", 100.0, scene);
-    var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);
-    skyboxMaterial.backFaceCulling = false;
-    skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("Scenes/Customs/skybox/skybox", scene);
-    skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
-    skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    skybox.material = skyboxMaterial;
-
-    return scene;
-};

+ 0 - 77
Samples/Scenes/Customs/lights_test.js

@@ -1,77 +0,0 @@
-var CreateLightsTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
-    var light0 = new BABYLON.PointLight("Omni0", new BABYLON.Vector3(0, 10, 0), scene);
-    var light1 = new BABYLON.PointLight("Omni1", new BABYLON.Vector3(0, -10, 0), scene);
-    var light2 = new BABYLON.PointLight("Omni2", new BABYLON.Vector3(10, 0, 0), scene);
-    var light3 = new BABYLON.DirectionalLight("Dir0", new BABYLON.Vector3(1, -1, 0), scene);
-    var material = new BABYLON.StandardMaterial("kosh", scene);
-    var sphere = BABYLON.Mesh.CreateSphere("Sphere", 16, 3, scene);
-
-    camera.setPosition(new BABYLON.Vector3(-10, 10, 0));
-
-    light3.parent = camera;
-    
-    // Creating light sphere
-    var lightSphere0 = BABYLON.Mesh.CreateSphere("Sphere0", 16, 0.5, scene);
-    var lightSphere1 = BABYLON.Mesh.CreateSphere("Sphere1", 16, 0.5, scene);
-    var lightSphere2 = BABYLON.Mesh.CreateSphere("Sphere2", 16, 0.5, scene);
-    
-    lightSphere0.material = new BABYLON.StandardMaterial("red", scene);
-    lightSphere0.material.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    lightSphere0.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    lightSphere0.material.emissiveColor = new BABYLON.Color3(1, 0, 0);
-
-    lightSphere1.material = new BABYLON.StandardMaterial("green", scene);
-    lightSphere1.material.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    lightSphere1.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    lightSphere1.material.emissiveColor = new BABYLON.Color3(0, 1, 0);
-
-    lightSphere2.material = new BABYLON.StandardMaterial("blue", scene);
-    lightSphere2.material.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    lightSphere2.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    lightSphere2.material.emissiveColor = new BABYLON.Color3(0, 0, 1);
-
-    // Sphere material
-    material.diffuseColor = new BABYLON.Color3(1, 1, 1);
-    sphere.material = material;
-
-    // Lights colors
-    light0.diffuse = new BABYLON.Color3(1, 0, 0);
-    light0.specular = new BABYLON.Color3(1, 0, 0);
-    
-    light1.diffuse = new BABYLON.Color3(0, 1, 0);
-    light1.specular = new BABYLON.Color3(0, 1, 0);
-    
-    light2.diffuse = new BABYLON.Color3(0, 0, 1);
-    light2.specular = new BABYLON.Color3(0, 0, 1);
-    
-    light3.diffuse = new BABYLON.Color3(1, 1, 1);
-    light3.specular = new BABYLON.Color3(1, 1, 1);
-    
-    // Skybox
-    var skybox = BABYLON.Mesh.CreateBox("skyBox", 100.0, scene);
-    var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);
-    skyboxMaterial.backFaceCulling = false;
-    skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("Scenes/Customs/skybox/skybox", scene);
-    skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
-    skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    skybox.material = skyboxMaterial;
-
-    // Animations
-    var alpha = 0;
-    scene.registerBeforeRender(function () {
-        light0.position = new BABYLON.Vector3(10 * Math.sin(alpha), 0, 10 * Math.cos(alpha));
-        light1.position = new BABYLON.Vector3(10 * Math.sin(alpha), 0, -10 * Math.cos(alpha));
-        light2.position = new BABYLON.Vector3(10 * Math.cos(alpha), 0, 10 * Math.sin(alpha));
-
-        lightSphere0.position = light0.position;
-        lightSphere1.position = light1.position;
-        lightSphere2.position = light2.position;
-
-        alpha += 0.01;
-    });
-
-    return scene;
-};

+ 0 - 40
Samples/Scenes/Customs/multimat.js

@@ -1,40 +0,0 @@
-var CreateMultiMaterialScene = function(engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
-    var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(20, 100, 2), scene);
-    
-
-    var material0 = new BABYLON.StandardMaterial("mat0", scene);
-    material0.diffuseColor = new BABYLON.Color3(1, 0, 0);
-    material0.bumpTexture = new BABYLON.Texture("Scenes/Customs/normalMap.jpg", scene);
-    
-    var material1 = new BABYLON.StandardMaterial("mat1", scene);
-    material1.diffuseColor = new BABYLON.Color3(0, 0, 1);
-    
-    var material2 = new BABYLON.StandardMaterial("mat2", scene);
-    material2.emissiveColor = new BABYLON.Color3(0.4, 0, 0.4);
-
-    var multimat = new BABYLON.MultiMaterial("multi", scene);
-    multimat.subMaterials.push(material0);
-    multimat.subMaterials.push(material1);
-    multimat.subMaterials.push(material2);
-
-    var sphere = BABYLON.Mesh.CreateSphere("Sphere0", 16, 3, scene);
-    sphere.material = multimat;
-
-    sphere.subMeshes = [];
-    var verticesCount = sphere.getTotalVertices();
-    
-    sphere.subMeshes.push(new BABYLON.SubMesh(0, 0, verticesCount, 0, 900, sphere));
-    sphere.subMeshes.push(new BABYLON.SubMesh(1, 0, verticesCount, 900, 900, sphere));
-    sphere.subMeshes.push(new BABYLON.SubMesh(2, 0, verticesCount, 1800, 2088, sphere));
-
-    camera.setPosition(new BABYLON.Vector3(-3, 3, 0));
-    
-    // Animations
-    scene.registerBeforeRender(function () {
-        sphere.rotation.y += 0.01;
-    });
-
-    return scene;
-};

BIN=BIN
Samples/Scenes/Customs/normalMap.jpg


+ 0 - 33
Samples/Scenes/Customs/octree.js

@@ -1,33 +0,0 @@
-var CreateOctreeTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
-    var light0 = new BABYLON.PointLight("Omni0", new BABYLON.Vector3(0, 10, 0), scene);
-    var material = new BABYLON.StandardMaterial("kosh", scene);
-    var sphere = BABYLON.Mesh.CreateSphere("sphere0", 16, 1, scene);
-
-    camera.setPosition(new BABYLON.Vector3(-10, 10, 0));
-    
-    // Sphere material
-    material.diffuseColor = new BABYLON.Color3(0.5, 0.5, 0.5);
-    material.specularColor = new BABYLON.Color3(1.0, 1.0, 1.0);
-    material.specularPower = 32;
-    material.checkReadyOnEveryCall = false;
-    sphere.material = material;
-    
-    // Fog
-    scene.fogMode = BABYLON.Scene.FOGMODE_EXP;
-    scene.fogDensity = 0.05;
-    
-    // Clone spheres
-    var playgroundSize = 50;
-    for (var index = 0; index < 8000; index++) {
-        var clone = sphere.clone("sphere" + (index + 1), null, true);
-        var scale = Math.random() * 0.8 + 0.6;
-        clone.scaling = new BABYLON.Vector3(scale, scale, scale);
-        clone.position = new BABYLON.Vector3(Math.random() * 2 * playgroundSize - playgroundSize, Math.random() * 2 * playgroundSize - playgroundSize, Math.random() * 2 * playgroundSize - playgroundSize);
-    }
-    sphere.setEnabled(false);
-    scene.createOrUpdateSelectionOctree();
-    
-    return scene;
-};

+ 0 - 140
Samples/Scenes/Customs/physics.js

@@ -1,140 +0,0 @@
-var CreatePhysicsScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.FreeCamera("Camera", new BABYLON.Vector3(0, 0, -20), scene);
-    camera.checkCollisions = true;
-    camera.applyGravity = true;
-
-    var light = new BABYLON.DirectionalLight("dir02", new BABYLON.Vector3(0.2, -1, 0), scene);
-    light.position = new BABYLON.Vector3(0, 80, 0);
-
-    // Material
-    var materialAmiga = new BABYLON.StandardMaterial("amiga", scene);
-    materialAmiga.diffuseTexture = new BABYLON.Texture("assets/amiga.jpg", scene);
-    materialAmiga.emissiveColor = new BABYLON.Color3(0.5, 0.5, 0.5);
-    materialAmiga.diffuseTexture.uScale = 5;
-    materialAmiga.diffuseTexture.vScale = 5;
-
-    var materialAmiga2 = new BABYLON.StandardMaterial("amiga", scene);
-    materialAmiga2.diffuseTexture = new BABYLON.Texture("assets/mosaic.jpg", scene);
-    materialAmiga2.emissiveColor = new BABYLON.Color3(0.5, 0.5, 0.5);
-
-    // Shadows
-    var shadowGenerator = new BABYLON.ShadowGenerator(2048, light);
-    shadowGenerator.getShadowMap().renderList.push(box0);
-
-    // Physics
-    scene.enablePhysics();
-
-    // Spheres
-    var y = 0;
-    for (var index = 0; index < 32; index++) {
-        var sphere = BABYLON.Mesh.CreateSphere("Sphere0", 16, 3, scene);
-        sphere.material = materialAmiga;
-
-        sphere.position = new BABYLON.Vector3(Math.random() * 20 - 10, y, Math.random() * 10 - 5);
-
-        shadowGenerator.getShadowMap().renderList.push(sphere);
-
-        sphere.setPhysicsState({ impostor: BABYLON.PhysicsEngine.SphereImpostor, mass: 1 });
-
-        y += 2;
-    }
-
-    // Link
-    var spheres = [];
-    for (var index = 0; index < 10; index++) {
-        var sphere = BABYLON.Mesh.CreateSphere("Sphere0", 16, 1, scene);
-        spheres.push(sphere);
-        sphere.material = materialAmiga2;
-        sphere.position = new BABYLON.Vector3(Math.random() * 20 - 10, y, Math.random() * 10 - 5);
-
-        shadowGenerator.getShadowMap().renderList.push(sphere);
-
-        sphere.setPhysicsState({ impostor: BABYLON.PhysicsEngine.SphereImpostor, mass: 1 });
-    }
-
-    for (var index = 0; index < 10; index++) {
-        spheres[index].setPhysicsLinkWith(spheres[index + 1], new BABYLON.Vector3(0, 0.5, 0), new BABYLON.Vector3(0, -0.5, 0));
-    }
-
-    // Box
-    var box0 = BABYLON.Mesh.CreateBox("Box0", 3, scene);
-    box0.position = new BABYLON.Vector3(3, 30, 0);
-    var materialWood = new BABYLON.StandardMaterial("wood", scene);
-    materialWood.diffuseTexture = new BABYLON.Texture("assets/wood.jpg", scene);
-    materialWood.emissiveColor = new BABYLON.Color3(0.5, 0.5, 0.5);
-    box0.material = materialWood;
-
-    shadowGenerator.getShadowMap().renderList.push(box0);
-
-    // Compound
-    var part0 = BABYLON.Mesh.CreateBox("part0", 3, scene);
-    part0.position = new BABYLON.Vector3(3, 30, 0);
-    part0.material = materialWood;
-
-    var part1 = BABYLON.Mesh.CreateBox("part1", 3, scene);
-    part1.parent = part0; // We need a hierarchy for compound objects
-    part1.position = new BABYLON.Vector3(0, 3, 0);
-    part1.material = materialWood;
-
-    shadowGenerator.getShadowMap().renderList.push(part0);
-    shadowGenerator.getShadowMap().renderList.push(part1);
-
-    // Playground
-    var ground = BABYLON.Mesh.CreateBox("Ground", 1, scene);
-    ground.scaling = new BABYLON.Vector3(100, 1, 100);
-    ground.position.y = -5.0;
-    ground.checkCollisions = true;
-
-    var border0 = BABYLON.Mesh.CreateBox("border0", 1, scene);
-    border0.scaling = new BABYLON.Vector3(1, 100, 100);
-    border0.position.y = -5.0;
-    border0.position.x = -50.0;
-    border0.checkCollisions = true;
-
-    var border1 = BABYLON.Mesh.CreateBox("border1", 1, scene);
-    border1.scaling = new BABYLON.Vector3(1, 100, 100);
-    border1.position.y = -5.0;
-    border1.position.x = 50.0;
-    border1.checkCollisions = true;
-
-    var border2 = BABYLON.Mesh.CreateBox("border2", 1, scene);
-    border2.scaling = new BABYLON.Vector3(100, 100, 1);
-    border2.position.y = -5.0;
-    border2.position.z = 50.0;
-    border2.checkCollisions = true;
-
-    var border3 = BABYLON.Mesh.CreateBox("border3", 1, scene);
-    border3.scaling = new BABYLON.Vector3(100, 100, 1);
-    border3.position.y = -5.0;
-    border3.position.z = -50.0;
-    border3.checkCollisions = true;
-
-    camera.setTarget(new BABYLON.Vector3(0, 0, 0));
-
-    var groundMat = new BABYLON.StandardMaterial("groundMat", scene);
-    groundMat.diffuseColor = new BABYLON.Color3(0.5, 0.5, 0.5);
-    groundMat.emissiveColor = new BABYLON.Color3(0.2, 0.2, 0.2);
-    ground.material = groundMat;
-    border0.material = groundMat;
-    border1.material = groundMat;
-    border2.material = groundMat;
-    border3.material = groundMat;
-    ground.receiveShadows = true;
-
-    // Physics
-    box0.setPhysicsState({ impostor: BABYLON.PhysicsEngine.BoxImpostor, mass: 2, friction: 0.4, restitution: 0.3 });
-    ground.setPhysicsState({ impostor: BABYLON.PhysicsEngine.BoxImpostor, mass: 0, friction: 0.5, restitution: 0.7 });
-    border0.setPhysicsState({ impostor: BABYLON.PhysicsEngine.BoxImpostor, mass: 0 });
-    border1.setPhysicsState({ impostor: BABYLON.PhysicsEngine.BoxImpostor, mass: 0 });
-    border2.setPhysicsState({ impostor: BABYLON.PhysicsEngine.BoxImpostor, mass: 0 });
-    border3.setPhysicsState({ impostor: BABYLON.PhysicsEngine.BoxImpostor, mass: 0 });
-
-    scene.createCompoundImpostor({
-        mass: 2, friction: 0.4, restitution: 0.3, parts: [
-        { mesh: part0, impostor: BABYLON.PhysicsEngine.BoxImpostor },
-        { mesh: part1, impostor: BABYLON.PhysicsEngine.BoxImpostor }]
-    });
-
-    return scene;
-};

+ 0 - 77
Samples/Scenes/Customs/postprocessBloom.js

@@ -1,77 +0,0 @@
-var CreatePostProcessBloomTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
-    var light = new BABYLON.DirectionalLight("dir01", new BABYLON.Vector3(0, -1, -0.2), scene);
-    var light2 = new BABYLON.DirectionalLight("dir02", new BABYLON.Vector3(-1, -2, -1), scene);
-    light.position = new BABYLON.Vector3(0, 30, 0);
-    light2.position = new BABYLON.Vector3(10, 20, 10);
-
-    light.intensity = 0.6;
-    light2.intensity = 0.6;
-
-    camera.setPosition(new BABYLON.Vector3(-40, 40, 0));
-    camera.lowerBetaLimit = (Math.PI / 2) * 0.9;
-    
-    // Skybox
-    var skybox = BABYLON.Mesh.CreateBox("skyBox", 1000.0, scene);
-    var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);
-    skyboxMaterial.backFaceCulling = false;
-    skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("Scenes/Customs/skybox/snow", scene);
-    skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
-    skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    skybox.material = skyboxMaterial;
-    
-    // Spheres
-    var sphere0 = BABYLON.Mesh.CreateSphere("Sphere0", 16, 10, scene);
-    var sphere1 = BABYLON.Mesh.CreateSphere("Sphere1", 16, 10, scene);
-    var sphere2 = BABYLON.Mesh.CreateSphere("Sphere2", 16, 10, scene);
-    var cube = BABYLON.Mesh.CreateBox("Cube", 10.0, scene);
-
-    sphere0.material = new BABYLON.StandardMaterial("white", scene);
-    sphere0.material.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    sphere0.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    sphere0.material.emissiveColor = new BABYLON.Color3(1.0, 1.0, 1.0);
-    
-    sphere1.material = sphere0.material;
-    sphere2.material = sphere0.material;
-    
-    cube.material = new BABYLON.StandardMaterial("red", scene);
-    cube.material.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    cube.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    cube.material.emissiveColor = new BABYLON.Color3(1.0, 0, 0);
-       
-    // Post-process
-    var blurWidth = 1.0;
-    
-    var postProcess0 = new BABYLON.PassPostProcess("Scene copy", 1.0, camera);
-    var postProcess1 = new BABYLON.PostProcess("Down sample", "./Scenes/Customs/postprocesses/downsample", ["screenSize", "highlightThreshold"], null, 0.25, camera, BABYLON.Texture.BILINEAR_SAMPLINGMODE);
-    postProcess1.onApply = function (effect) {
-        effect.setFloat2("screenSize", postProcess1.width, postProcess1.height);
-        effect.setFloat("highlightThreshold", 0.90);
-    };
-    var postProcess2 = new BABYLON.BlurPostProcess("Horizontal blur", new BABYLON.Vector2(1.0, 0), blurWidth, 0.25, camera);
-    var postProcess3 = new BABYLON.BlurPostProcess("Vertical blur", new BABYLON.Vector2(0, 1.0), blurWidth, 0.25, camera);
-    var postProcess4 = new BABYLON.PostProcess("Final compose", "./Scenes/Customs/postprocesses/compose", ["sceneIntensity", "glowIntensity", "highlightIntensity"], ["sceneSampler"], 1, camera);
-    postProcess4.onApply = function (effect) {
-        effect.setTextureFromPostProcess("sceneSampler", postProcess0);
-        effect.setFloat("sceneIntensity", 0.5);
-        effect.setFloat("glowIntensity", 0.4);
-        effect.setFloat("highlightIntensity", 1.0);
-    };
-    
-    // Animations
-    var alpha = 0;
-    scene.registerBeforeRender(function() {
-        sphere0.position = new BABYLON.Vector3(20 * Math.sin(alpha), 0, 20 * Math.cos(alpha));
-        sphere1.position = new BABYLON.Vector3(20 * Math.sin(alpha), 0, -20 * Math.cos(alpha));
-        sphere2.position = new BABYLON.Vector3(20 * Math.cos(alpha), 0, 20 * Math.sin(alpha));
-
-        cube.rotation.y += 0.01;
-        cube.rotation.z += 0.01;
-
-        alpha += 0.01;
-    });
-    
-    return scene;
-};

+ 0 - 56
Samples/Scenes/Customs/postprocessRefraction.js

@@ -1,56 +0,0 @@
-var CreatePostProcessRefractionTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 100, BABYLON.Vector3.Zero(), scene);
-    var light = new BABYLON.DirectionalLight("dir01", new BABYLON.Vector3(0, -1, -0.2), scene);
-    var light2 = new BABYLON.DirectionalLight("dir02", new BABYLON.Vector3(-1, -2, -1), scene);
-    light.position = new BABYLON.Vector3(0, 30, 0);
-    light2.position = new BABYLON.Vector3(10, 20, 10);
-
-    light.intensity = 0.6;
-    light2.intensity = 0.6;
-
-    camera.setPosition(new BABYLON.Vector3(-60, 60, 0));
-    camera.lowerBetaLimit = (Math.PI / 2) * 0.8;
-    
-    // Skybox
-    var skybox = BABYLON.Mesh.CreateBox("skyBox", 1000.0, scene);
-    var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);
-    skyboxMaterial.backFaceCulling = false;
-    skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("Scenes/Customs/skybox/snow", scene);
-    skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
-    skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    skybox.material = skyboxMaterial;
-    
-    // Spheres
-    var sphere0 = BABYLON.Mesh.CreateSphere("Sphere0", 16, 10, scene);
-    var sphere1 = BABYLON.Mesh.CreateSphere("Sphere1", 16, 10, scene);
-    var sphere2 = BABYLON.Mesh.CreateSphere("Sphere2", 16, 10, scene);
-
-    sphere0.material = new BABYLON.StandardMaterial("red", scene);
-    sphere0.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    sphere0.material.diffuseColor = new BABYLON.Color3(1.0, 0, 0);
-    
-    sphere1.material = new BABYLON.StandardMaterial("green", scene);
-    sphere1.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    sphere1.material.diffuseColor = new BABYLON.Color3(0, 1.0, 0);
-    
-    sphere2.material = new BABYLON.StandardMaterial("blue", scene);
-    sphere2.material.specularColor = new BABYLON.Color3(0, 0, 0);
-    sphere2.material.diffuseColor = new BABYLON.Color3(0, 0, 1.0);
-       
-    // Post-process
-    var postProcess = new BABYLON.RefractionPostProcess("Refraction", "/scenes/customs/refMap.jpg", new BABYLON.Color3(1.0, 1.0, 1.0), 0.5, 0.5, 1.0, camera);
-    
-    // Animations
-    var alpha = 0;
-    scene.registerBeforeRender(function() {
-        sphere0.position = new BABYLON.Vector3(20 * Math.sin(alpha), 0, 20 * Math.cos(alpha));
-        sphere1.position = new BABYLON.Vector3(20 * Math.sin(alpha), 0, -20 * Math.cos(alpha));
-        sphere2.position = new BABYLON.Vector3(20 * Math.cos(alpha), 0, 20 * Math.sin(alpha));
-
-        alpha += 0.01;
-    });
-    
-    return scene;
-};

+ 0 - 25
Samples/Scenes/Customs/postprocesses/compose.fragment.fx

@@ -1,25 +0,0 @@
-#ifdef GL_ES
-precision mediump float;
-#endif
-
-// Samplers
-varying vec2 vUV;
-uniform sampler2D textureSampler;
-uniform sampler2D sceneSampler;
-
-// Parameters
-uniform vec2 screenSize;
-uniform float sceneIntensity;
-uniform float glowIntensity;
-uniform float highlightIntensity;
-
-void main(void) 
-{
-	vec4 orig = texture2D(sceneSampler, vUV);
-	vec4 blur = texture2D(textureSampler, vUV);
-
-	vec4 final = sceneIntensity * orig + glowIntensity * blur + highlightIntensity * blur.a;
-	final.a = 1.0;
-
-	gl_FragColor = final;
-}

+ 0 - 29
Samples/Scenes/Customs/postprocesses/downsample.fragment.fx

@@ -1,29 +0,0 @@
-#ifdef GL_ES
-precision mediump float;
-#endif
-
-// Samplers
-varying vec2 vUV;
-uniform sampler2D textureSampler;
-
-// Parameters
-uniform vec2 screenSize;
-uniform float highlightThreshold;
-
-float highlights(vec3 color)
-{
-	return smoothstep(highlightThreshold, 1.0, dot(color, vec3(0.3, 0.59, 0.11)));
-}
-
-void main(void) 
-{
-	vec2 texelSize = vec2(1.0 / screenSize.x, 1.0 / screenSize.y);
-	vec4 baseColor = texture2D(textureSampler, vUV + vec2(-1.0, -1.0) * texelSize) * 0.25;
-	baseColor += texture2D(textureSampler, vUV + vec2(1.0, -1.0) * texelSize) * 0.25;
-	baseColor += texture2D(textureSampler, vUV + vec2(1.0, 1.0) * texelSize) * 0.25;
-	baseColor += texture2D(textureSampler, vUV + vec2(-1.0, 1.0) * texelSize) * 0.25;
-	
-	baseColor.a = highlights(baseColor.rgb);
-
-	gl_FragColor = baseColor;
-}

BIN=BIN
Samples/Scenes/Customs/refMap.jpg


+ 0 - 78
Samples/Scenes/Customs/shadows.js

@@ -1,78 +0,0 @@
-var CreateShadowsTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
-    var light = new BABYLON.DirectionalLight("dir01", new BABYLON.Vector3(0, -1, -0.2), scene);
-    var light2 = new BABYLON.DirectionalLight("dir02", new BABYLON.Vector3(-1, -2, -1), scene);
-    light.position = new BABYLON.Vector3(0, 30, 0);
-    light2.position = new BABYLON.Vector3(10, 20, 10);
-
-    light.intensity = 0.6;
-    light2.intensity = 0.6;
-
-    camera.setPosition(new BABYLON.Vector3(-20, 20, 0));
-    
-    // Skybox
-    var skybox = BABYLON.Mesh.CreateBox("skyBox", 1000.0, scene);
-    var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);
-    skyboxMaterial.backFaceCulling = false;
-    skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("Scenes/Customs/skybox/night", scene);
-    skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
-    skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    skybox.material = skyboxMaterial;
-
-    // Ground
-    var ground = BABYLON.Mesh.CreateGround("ground", 1000, 1000, 1, scene, false);
-    var groundMaterial = new BABYLON.StandardMaterial("ground", scene);
-    groundMaterial.diffuseTexture = new BABYLON.Texture("assets/grass.jpg", scene);
-    groundMaterial.diffuseTexture.uScale = 60;
-    groundMaterial.diffuseTexture.vScale = 60;
-    groundMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
-    groundMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
-    ground.position.y = -2.05;
-    ground.material = groundMaterial;
-    
-    // Torus
-    var torus = BABYLON.Mesh.CreateTorus("torus", 8, 2, 32, scene, false);
-    torus.position.y = 6.0;
-    var torus2 = BABYLON.Mesh.CreateTorus("torus2", 4, 1, 32, scene, false);
-    torus2.position.y = 6.0;
-    
-    // Shadows
-    var shadowGenerator = new BABYLON.ShadowGenerator(512, light);
-    shadowGenerator.getShadowMap().renderList.push(torus);
-    shadowGenerator.getShadowMap().renderList.push(torus2);
-    
-    var shadowGenerator2 = new BABYLON.ShadowGenerator(512, light2);
-    shadowGenerator2.getShadowMap().renderList.push(torus);
-    shadowGenerator2.getShadowMap().renderList.push(torus2);
-    shadowGenerator2.useVarianceShadowMap = false;
-
-    ground.receiveShadows = true;
-    
-    var beforeRenderFunction = function () {
-        // Camera
-        if (camera.beta < 0.1)
-            camera.beta = 0.1;
-        else if (camera.beta > (Math.PI / 2) * 0.99)
-            camera.beta = (Math.PI / 2) * 0.99;
-
-        if (camera.radius > 150)
-            camera.radius = 150;
-
-        if (camera.radius < 5)
-            camera.radius = 5;
-    };
-
-    scene.registerBeforeRender(beforeRenderFunction);
-    
-    // Animations
-    scene.registerBeforeRender(function () {
-        torus.rotation.x += 0.01;
-        torus.rotation.z += 0.02;
-        torus2.rotation.x += 0.02;
-        torus2.rotation.y += 0.01;
-    });
-    
-    return scene;
-};

BIN=BIN
Samples/Scenes/Customs/skybox/night_nx.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/night_ny.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/night_nz.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/night_px.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/night_py.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/night_pz.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/skybox_nx.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/skybox_ny.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/skybox_nz.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/skybox_px.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/skybox_py.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/skybox_pz.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/snow_nx.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/snow_ny.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/snow_nz.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/snow_px.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/snow_py.jpg


BIN=BIN
Samples/Scenes/Customs/skybox/snow_pz.jpg


+ 0 - 223
Samples/Scenes/Customs/test.js

@@ -1,223 +0,0 @@
-var CreateTestScene = function (engine) {
-    var scene = new BABYLON.Scene(engine);
-    //var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0.8, 10, BABYLON.Vector3.Zero(), scene);
-    var camera = new BABYLON.FreeCamera("Camera", new BABYLON.Vector3(0, 0, -10), scene);
-    var camera2 = new BABYLON.FreeCamera("Camera", new BABYLON.Vector3(0, 0, -10), scene);
-    var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(20, 100, 50), scene);
-    var material = new BABYLON.StandardMaterial("leaves", scene);
-    var material2 = new BABYLON.StandardMaterial("kosh transparent", scene);
-    var material3 = new BABYLON.StandardMaterial("kosh", scene);
-    var planeMaterial = new BABYLON.StandardMaterial("plane material", scene);
-    var box = BABYLON.Mesh.CreateBox("Box", 1.0, scene);
-    var cylinder = BABYLON.Mesh.CreateCylinder("Cylinder", 2, 0.8, 0, 32, scene);
-    var torus = BABYLON.Mesh.CreateTorus("Torus", 1.0, 0.5, 16, scene);
-    var sphere = BABYLON.Mesh.CreateSphere("Sphere", 16, 3, scene);
-    var plane = BABYLON.Mesh.CreatePlane("plane", 3, scene);
-
-    camera.viewport = new BABYLON.Viewport(0.5, 0, 0.5, 1.0);
-    camera2.viewport = new BABYLON.Viewport(0, 0, 0.5, 1.0);
-
-    scene.activeCameras.push(camera);
-    scene.activeCameras.push(camera2);
-
-    //material.diffuseColor = new BABYLON.Color3(0, 0, 1);
-    material.diffuseTexture = new BABYLON.Texture("Assets/Tree.png", scene);
-    material.diffuseTexture.hasAlpha = true;
-    material.backFaceCulling = false;
-    material2.diffuseTexture = new BABYLON.Texture("Assets/kosh.jpg", scene);
-    material2.alpha = 0.5;
-    material2.backFaceCulling = false;
-    material3.diffuseTexture = new BABYLON.Texture("Assets/kosh.jpg", scene);
-    planeMaterial.backFaceCulling = false;
-    var planeTexture = new BABYLON.DynamicTexture("dynamic texture", 512, scene, true);
-    planeTexture.hasAlpha = true;
-    planeMaterial.diffuseTexture = planeTexture;
-    plane.billboardMode = BABYLON.Mesh.BILLBOARDMODE_ALL;
-
-    box.material = material;
-    cylinder.material = material3;
-    torus.material = material2;
-    sphere.material = material;
-    plane.material = planeMaterial;
-    cylinder.position.z += 13;
-    cylinder.renderingGroupId = 1;
-    torus.position.x -= 3;
-    torus.parent = sphere;
-    sphere.position.z = 3;
-    plane.position = new BABYLON.Vector3(0, 7, 0);
-
-    cylinder.parent = camera2;
-
-    // Particles
-    var particleSystem = new BABYLON.ParticleSystem("particles", 4000, scene);
-    particleSystem.particleTexture = new BABYLON.Texture("Assets/Flare.png", scene);
-    particleSystem.minAngularSpeed = -0.5;
-    particleSystem.maxAngularSpeed = 0.5;
-    particleSystem.minSize = 0.5;
-    particleSystem.maxSize = 1.0;
-    particleSystem.minLifeTime = 0.5;
-    particleSystem.maxLifeTime = 1.0;
-    particleSystem.emitter = torus;
-    particleSystem.emitRate = 300;
-    particleSystem.blendMode = BABYLON.ParticleSystem.BLENDMODE_ONEONE;
-    particleSystem.minEmitBox = new BABYLON.Vector3(0, 0.1, 0);
-    particleSystem.maxEmitBox = new BABYLON.Vector3(0, -0.1, 0);
-    particleSystem.gravity = new BABYLON.Vector3(0, -0.5, 0);
-    particleSystem.start();
-
-    // Mirror
-    var mirror = BABYLON.Mesh.CreateBox("Mirror", 1.0, scene);
-    mirror.scaling = new BABYLON.Vector3(100.0, 0.01, 100.0);
-    mirror.material = new BABYLON.StandardMaterial("mirror", scene);
-    mirror.material.diffuseColor = new BABYLON.Color3(0.4, 0.4, 0.4);
-    mirror.material.reflectionTexture = new BABYLON.MirrorTexture("mirror", 512, scene, true);
-    mirror.material.reflectionTexture.mirrorPlane = new BABYLON.Plane(0, -1.0, 0, -5.0);
-    mirror.material.reflectionTexture.renderList = [box, cylinder, torus, sphere];
-    mirror.material.reflectionTexture.level = 0.5;
-    mirror.position = new BABYLON.Vector3(0, -5.0, 0);
-    
-    // Sprites
-    var spriteManager = new BABYLON.SpriteManager("MonsterA", "Assets/Player.png", 500, 64, scene);
-    for (var index = 0; index < 500; index++) {
-        var sprite = new BABYLON.Sprite("toto", spriteManager);
-        sprite.position.y = -4.5;
-        sprite.position.z = Math.random() * 20 - 10;
-        sprite.position.x = Math.random() * 20 - 10;
-        sprite.dir = Math.round(Math.random()) * 2 - 1;
-        sprite.invertU = (sprite.dir < 0);
-
-        sprite.playAnimation(0, 9, true, 100);
-
-        sprite.color = new BABYLON.Color4(1, 0, 0, 1);
-    }
-    
-    // Backgrounds
-    var background0 = new BABYLON.Layer("back0", "Assets/Layer0_0.png", scene);
-    var background1 = new BABYLON.Layer("back1", "Assets/Layer1_0.png", scene);
-    var foreground = new BABYLON.Layer("back0", "Assets/Layer2_0.png", scene, true, new BABYLON.Color4(1, 0, 0, 1));
-    
-    // Import
-    var spaceDek;
-    BABYLON.SceneLoader.ImportMesh("Vaisseau", "Scenes/SpaceDek/", "SpaceDek.babylon", scene, function (newMeshes, particleSystems) {
-        spaceDek = newMeshes[0];
-        for (var index = 0; index < newMeshes.length; index++) {
-            mirror.material.reflectionTexture.renderList.push(newMeshes[index]);
-        }
-
-        spaceDek.position = new BABYLON.Vector3(0, 20, 0);
-        spaceDek.scaling = new BABYLON.Vector3(0.3, 0.3, 0.3);
-    });
-
-    var spaceDek2;
-    var spaceDek3;
-    BABYLON.SceneLoader.ImportMesh("Vaisseau", "Scenes/SpaceDek/", "SpaceDek.babylon", scene, function (newMeshes) {
-        spaceDek2 = newMeshes[0];
-        spaceDek2.name = "Vaisseau 2";
-        for (var index = 0; index < newMeshes.length; index++) {
-            mirror.material.reflectionTexture.renderList.push(newMeshes[index]);
-        }
-
-        spaceDek2.position = new BABYLON.Vector3(40, 20, 0);
-        spaceDek2.scaling = new BABYLON.Vector3(0.3, 0.3, 0.3);
-
-        // Clone
-        spaceDek3 = spaceDek2.clone("Vaisseau 3");
-        spaceDek3.position = new BABYLON.Vector3(-50, 20, 0);
-        spaceDek3.scaling = new BABYLON.Vector3(0.3, 0.3, 0.3);
-        mirror.material.reflectionTexture.renderList.push(spaceDek3);
-        var children = spaceDek3.getDescendants();
-        for (var index = 0; index < children.length; index++) {
-            mirror.material.reflectionTexture.renderList.push(children[index]);
-        }
-
-        spaceDek3.material = spaceDek2.material.clone("Vaisseau 3 mat");
-        
-        spaceDek3.material.emissiveColor = new BABYLON.Color3(1.0, 0, 0);
-
-        spaceDek3.infiniteDistance = true;
-
-        scene.beginAnimation(spaceDek3, 0, 100, true, 1.0);
-    });
-
-    // Animations
-    var alpha = 0;
-    var frameCount = 0;
-    var reloop = 0;
-    var startDate = new Date();
-    var count = 0;
-    scene.registerBeforeRender(function () {
-        box.rotation.y += 0.01;
-       // cylinder.rotation.x += 0.01;
-        sphere.rotation.y += 0.02;
-        //  box3.scaling.y = 1 + Math.cos(alpha);
-        torus.rotation.z += 0.01;
-        alpha += 0.01;
-
-        if (spaceDek) {
-            spaceDek.rotation.y += 0.01;
-        }
-
-        if (spaceDek2) {
-            spaceDek2.rotation.y -= 0.01;
-        }
-
-        if (spaceDek3) {
-            spaceDek3.rotation.y -= 0.01;
-        }
-        
-        if (torus.intersectsMesh(box, true)) {
-            material2.alpha = 1;
-            torus.scaling = new BABYLON.Vector3(2, 2, 2);
-        } else {
-            material2.alpha = 0.5;
-            torus.scaling = new BABYLON.Vector3(1, 1, 1);
-        }
-
-        // Sprites
-        frameCount++;
-        if (frameCount > 3) {
-            frameCount = 0;
-            reloop++;
-            for (var index = 0; index < spriteManager.sprites.length; index++) {
-                var sprite = spriteManager.sprites[index];
-                sprite.position.x -= 0.1 * sprite.dir;
-
-                if (reloop > 20) {
-                    sprite.dir *= -1;
-                    sprite.invertU = !sprite.invertU;
-                }
-            }
-
-            if (reloop > 20) {
-                reloop = 0;
-            }
-        }
-        
-        // Update dynamic texture
-        var diff = (new Date() - startDate);
-        
-        if (diff > 200) {
-            startDate = new Date();
-
-            var textureContext = planeTexture.getContext();
-            var size = planeTexture.getSize();
-            var text = count.toString();
-
-            textureContext.clearRect(0, 0, size.width, size.height);
-
-            textureContext.font = "bold 120px Calibri";
-            var textSize = textureContext.measureText(text);
-            textureContext.fillStyle = "white";
-            textureContext.fillText(text, (size.width - textSize.width) / 2, (size.height - 120) / 2);
-
-            planeTexture.update();
-
-            count++;
-        }
-        
-        // Background
-        background0.texture.uOffset += 0.001;
-    });
-
-    return scene;
-};

BIN=BIN
Samples/Scenes/Dude/0.jpg


BIN=BIN
Samples/Scenes/Dude/1.jpg


BIN=BIN
Samples/Scenes/Dude/2.jpg


BIN=BIN
Samples/Scenes/Dude/3.jpg


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 1
Samples/Scenes/Dude/Dude.babylon


BIN=BIN
Samples/Scenes/Espilit/Blanc.jpg


BIN=BIN
Samples/Scenes/Espilit/Blanc.png


BIN=BIN
Samples/Scenes/Espilit/Booklet.jpg


BIN=BIN
Samples/Scenes/Espilit/Booklet.png


BIN=BIN
Samples/Scenes/Espilit/BouteilleBlanc.jpg


BIN=BIN
Samples/Scenes/Espilit/BouteilleBlanc.png


BIN=BIN
Samples/Scenes/Espilit/BouteilleRouge.jpg


BIN=BIN
Samples/Scenes/Espilit/BouteilleRouge.png


BIN=BIN
Samples/Scenes/Espilit/ChaisesLightingMap.jpg


BIN=BIN
Samples/Scenes/Espilit/ChaisesLightingMap.png


BIN=BIN
Samples/Scenes/Espilit/ChaisesSpecMap.png


BIN=BIN
Samples/Scenes/Espilit/Chassis table CorbuLightingMap.jpg


BIN=BIN
Samples/Scenes/Espilit/Chassis table CorbuLightingMap.png


BIN=BIN
Samples/Scenes/Espilit/Ciel.jpg


BIN=BIN
Samples/Scenes/Espilit/Ciel.png


+ 0 - 0
Samples/Scenes/Espilit/Cuir.jpg


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio