babylon.standardMaterial.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. var __extends = this.__extends || function (d, b) {
  2. for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
  3. function __() { this.constructor = d; }
  4. __.prototype = b.prototype;
  5. d.prototype = new __();
  6. };
  7. var BABYLON;
  8. (function (BABYLON) {
  9. var maxSimultaneousLights = 4;
  10. var StandardMaterial = (function (_super) {
  11. __extends(StandardMaterial, _super);
  12. function StandardMaterial(name, scene) {
  13. var _this = this;
  14. _super.call(this, name, scene);
  15. this.ambientColor = new BABYLON.Color3(0, 0, 0);
  16. this.diffuseColor = new BABYLON.Color3(1, 1, 1);
  17. this.specularColor = new BABYLON.Color3(1, 1, 1);
  18. this.specularPower = 64;
  19. this.emissiveColor = new BABYLON.Color3(0, 0, 0);
  20. this.useAlphaFromDiffuseTexture = false;
  21. this._cachedDefines = null;
  22. this._renderTargets = new BABYLON.SmartArray(16);
  23. this._worldViewProjectionMatrix = BABYLON.Matrix.Zero();
  24. this._lightMatrix = BABYLON.Matrix.Zero();
  25. this._globalAmbientColor = new BABYLON.Color3(0, 0, 0);
  26. this._baseColor = new BABYLON.Color3();
  27. this._scaledDiffuse = new BABYLON.Color3();
  28. this._scaledSpecular = new BABYLON.Color3();
  29. this.getRenderTargetTextures = function () {
  30. _this._renderTargets.reset();
  31. if (_this.reflectionTexture && _this.reflectionTexture.isRenderTarget) {
  32. _this._renderTargets.push(_this.reflectionTexture);
  33. }
  34. return _this._renderTargets;
  35. };
  36. }
  37. StandardMaterial.prototype.needAlphaBlending = function () {
  38. return (this.alpha < 1.0) || (this.opacityTexture != null) || this._shouldUseAlphaFromDiffuseTexture();
  39. };
  40. StandardMaterial.prototype.needAlphaTesting = function () {
  41. return this.diffuseTexture != null && this.diffuseTexture.hasAlpha;
  42. };
  43. StandardMaterial.prototype._shouldUseAlphaFromDiffuseTexture = function () {
  44. return this.diffuseTexture != null && this.diffuseTexture.hasAlpha && this.useAlphaFromDiffuseTexture;
  45. };
  46. // Methods
  47. StandardMaterial.prototype.isReady = function (mesh) {
  48. if (this.checkReadyOnlyOnce) {
  49. if (this._wasPreviouslyReady) {
  50. return true;
  51. }
  52. }
  53. var scene = this.getScene();
  54. if (!this.checkReadyOnEveryCall) {
  55. if (this._renderId === scene.getRenderId()) {
  56. return true;
  57. }
  58. }
  59. var engine = scene.getEngine();
  60. var defines = [];
  61. var optionalDefines = new Array();
  62. // Textures
  63. if (scene.texturesEnabled) {
  64. if (this.diffuseTexture && BABYLON.StandardMaterial.DiffuseTextureEnabled) {
  65. if (!this.diffuseTexture.isReady()) {
  66. return false;
  67. } else {
  68. defines.push("#define DIFFUSE");
  69. }
  70. }
  71. if (this.ambientTexture && BABYLON.StandardMaterial.AmbientTextureEnabled) {
  72. if (!this.ambientTexture.isReady()) {
  73. return false;
  74. } else {
  75. defines.push("#define AMBIENT");
  76. }
  77. }
  78. if (this.opacityTexture && BABYLON.StandardMaterial.OpacityTextureEnabled) {
  79. if (!this.opacityTexture.isReady()) {
  80. return false;
  81. } else {
  82. defines.push("#define OPACITY");
  83. }
  84. }
  85. if (this.reflectionTexture && BABYLON.StandardMaterial.ReflectionTextureEnabled) {
  86. if (!this.reflectionTexture.isReady()) {
  87. return false;
  88. } else {
  89. defines.push("#define REFLECTION");
  90. }
  91. }
  92. if (this.emissiveTexture && BABYLON.StandardMaterial.EmissiveTextureEnabled) {
  93. if (!this.emissiveTexture.isReady()) {
  94. return false;
  95. } else {
  96. defines.push("#define EMISSIVE");
  97. }
  98. }
  99. if (this.specularTexture && BABYLON.StandardMaterial.SpecularTextureEnabled) {
  100. if (!this.specularTexture.isReady()) {
  101. return false;
  102. } else {
  103. defines.push("#define SPECULAR");
  104. optionalDefines.push(defines[defines.length - 1]);
  105. }
  106. }
  107. }
  108. if (scene.getEngine().getCaps().standardDerivatives && this.bumpTexture && BABYLON.StandardMaterial.BumpTextureEnabled) {
  109. if (!this.bumpTexture.isReady()) {
  110. return false;
  111. } else {
  112. defines.push("#define BUMP");
  113. optionalDefines.push(defines[defines.length - 1]);
  114. }
  115. }
  116. // Effect
  117. if (scene.clipPlane) {
  118. defines.push("#define CLIPPLANE");
  119. }
  120. if (engine.getAlphaTesting()) {
  121. defines.push("#define ALPHATEST");
  122. }
  123. if (this._shouldUseAlphaFromDiffuseTexture()) {
  124. defines.push("#define ALPHAFROMDIFFUSE");
  125. }
  126. // Fog
  127. if (scene.fogMode !== BABYLON.Scene.FOGMODE_NONE) {
  128. defines.push("#define FOG");
  129. optionalDefines.push(defines[defines.length - 1]);
  130. }
  131. var shadowsActivated = false;
  132. var lightIndex = 0;
  133. if (scene.lightsEnabled) {
  134. for (var index = 0; index < scene.lights.length; index++) {
  135. var light = scene.lights[index];
  136. if (!light.isEnabled()) {
  137. continue;
  138. }
  139. if (mesh && light.excludedMeshes.indexOf(mesh) !== -1) {
  140. continue;
  141. }
  142. defines.push("#define LIGHT" + lightIndex);
  143. if (lightIndex > 0) {
  144. optionalDefines.push(defines[defines.length - 1]);
  145. }
  146. var type;
  147. if (light instanceof BABYLON.SpotLight) {
  148. type = "#define SPOTLIGHT" + lightIndex;
  149. } else if (light instanceof BABYLON.HemisphericLight) {
  150. type = "#define HEMILIGHT" + lightIndex;
  151. } else {
  152. type = "#define POINTDIRLIGHT" + lightIndex;
  153. }
  154. defines.push(type);
  155. if (lightIndex > 0) {
  156. optionalDefines.push(defines[defines.length - 1]);
  157. }
  158. // Shadows
  159. var shadowGenerator = light.getShadowGenerator();
  160. if (mesh && mesh.receiveShadows && shadowGenerator) {
  161. defines.push("#define SHADOW" + lightIndex);
  162. if (lightIndex > 0) {
  163. optionalDefines.push(defines[defines.length - 1]);
  164. }
  165. if (!shadowsActivated) {
  166. defines.push("#define SHADOWS");
  167. shadowsActivated = true;
  168. }
  169. if (shadowGenerator.useVarianceShadowMap) {
  170. defines.push("#define SHADOWVSM" + lightIndex);
  171. if (lightIndex > 0) {
  172. optionalDefines.push(defines[defines.length - 1]);
  173. }
  174. }
  175. }
  176. lightIndex++;
  177. if (lightIndex == maxSimultaneousLights)
  178. break;
  179. }
  180. }
  181. var attribs = [BABYLON.VertexBuffer.PositionKind, BABYLON.VertexBuffer.NormalKind];
  182. if (mesh) {
  183. if (mesh.isVerticesDataPresent(BABYLON.VertexBuffer.UVKind)) {
  184. attribs.push(BABYLON.VertexBuffer.UVKind);
  185. defines.push("#define UV1");
  186. }
  187. if (mesh.isVerticesDataPresent(BABYLON.VertexBuffer.UV2Kind)) {
  188. attribs.push(BABYLON.VertexBuffer.UV2Kind);
  189. defines.push("#define UV2");
  190. }
  191. if (mesh.isVerticesDataPresent(BABYLON.VertexBuffer.ColorKind)) {
  192. attribs.push(BABYLON.VertexBuffer.ColorKind);
  193. defines.push("#define VERTEXCOLOR");
  194. }
  195. if (mesh.skeleton && mesh.isVerticesDataPresent(BABYLON.VertexBuffer.MatricesIndicesKind) && mesh.isVerticesDataPresent(BABYLON.VertexBuffer.MatricesWeightsKind)) {
  196. attribs.push(BABYLON.VertexBuffer.MatricesIndicesKind);
  197. attribs.push(BABYLON.VertexBuffer.MatricesWeightsKind);
  198. defines.push("#define BONES");
  199. defines.push("#define BonesPerMesh " + mesh.skeleton.bones.length);
  200. defines.push("#define BONES4");
  201. optionalDefines.push(defines[defines.length - 1]);
  202. }
  203. }
  204. // Get correct effect
  205. var join = defines.join("\n");
  206. if (this._cachedDefines != join) {
  207. this._cachedDefines = join;
  208. // Legacy browser patch
  209. var shaderName = "default";
  210. if (!scene.getEngine().getCaps().standardDerivatives) {
  211. shaderName = "legacydefault";
  212. }
  213. this._effect = scene.getEngine().createEffect(shaderName, attribs, [
  214. "world", "view", "viewProjection", "vEyePosition", "vLightsType", "vAmbientColor", "vDiffuseColor", "vSpecularColor", "vEmissiveColor",
  215. "vLightData0", "vLightDiffuse0", "vLightSpecular0", "vLightDirection0", "vLightGround0", "lightMatrix0",
  216. "vLightData1", "vLightDiffuse1", "vLightSpecular1", "vLightDirection1", "vLightGround1", "lightMatrix1",
  217. "vLightData2", "vLightDiffuse2", "vLightSpecular2", "vLightDirection2", "vLightGround2", "lightMatrix2",
  218. "vLightData3", "vLightDiffuse3", "vLightSpecular3", "vLightDirection3", "vLightGround3", "lightMatrix3",
  219. "vFogInfos", "vFogColor",
  220. "vDiffuseInfos", "vAmbientInfos", "vOpacityInfos", "vReflectionInfos", "vEmissiveInfos", "vSpecularInfos", "vBumpInfos",
  221. "mBones",
  222. "vClipPlane", "diffuseMatrix", "ambientMatrix", "opacityMatrix", "reflectionMatrix", "emissiveMatrix", "specularMatrix", "bumpMatrix",
  223. "darkness0", "darkness1", "darkness2", "darkness3"], [
  224. "diffuseSampler", "ambientSampler", "opacitySampler", "reflectionCubeSampler", "reflection2DSampler", "emissiveSampler", "specularSampler", "bumpSampler",
  225. "shadowSampler0", "shadowSampler1", "shadowSampler2", "shadowSampler3"
  226. ], join, optionalDefines, this.onCompiled, this.onError);
  227. }
  228. if (!this._effect.isReady()) {
  229. return false;
  230. }
  231. this._renderId = scene.getRenderId();
  232. this._wasPreviouslyReady = true;
  233. return true;
  234. };
  235. StandardMaterial.prototype.unbind = function () {
  236. if (this.reflectionTexture && this.reflectionTexture.isRenderTarget) {
  237. this._effect.setTexture("reflection2DSampler", null);
  238. }
  239. };
  240. StandardMaterial.prototype.bind = function (world, mesh) {
  241. var scene = this.getScene();
  242. this._baseColor.copyFrom(this.diffuseColor);
  243. // Matrices
  244. this._effect.setMatrix("world", world);
  245. this._effect.setMatrix("viewProjection", scene.getTransformMatrix());
  246. // Bones
  247. if (mesh.skeleton && mesh.isVerticesDataPresent(BABYLON.VertexBuffer.MatricesIndicesKind) && mesh.isVerticesDataPresent(BABYLON.VertexBuffer.MatricesWeightsKind)) {
  248. this._effect.setMatrices("mBones", mesh.skeleton.getTransformMatrices());
  249. }
  250. // Textures
  251. if (this.diffuseTexture && BABYLON.StandardMaterial.DiffuseTextureEnabled) {
  252. this._effect.setTexture("diffuseSampler", this.diffuseTexture);
  253. this._effect.setFloat2("vDiffuseInfos", this.diffuseTexture.coordinatesIndex, this.diffuseTexture.level);
  254. this._effect.setMatrix("diffuseMatrix", this.diffuseTexture._computeTextureMatrix());
  255. this._baseColor.copyFromFloats(1, 1, 1);
  256. }
  257. if (this.ambientTexture && BABYLON.StandardMaterial.AmbientTextureEnabled) {
  258. this._effect.setTexture("ambientSampler", this.ambientTexture);
  259. this._effect.setFloat2("vAmbientInfos", this.ambientTexture.coordinatesIndex, this.ambientTexture.level);
  260. this._effect.setMatrix("ambientMatrix", this.ambientTexture._computeTextureMatrix());
  261. }
  262. if (this.opacityTexture && BABYLON.StandardMaterial.OpacityTextureEnabled) {
  263. this._effect.setTexture("opacitySampler", this.opacityTexture);
  264. this._effect.setFloat2("vOpacityInfos", this.opacityTexture.coordinatesIndex, this.opacityTexture.level);
  265. this._effect.setMatrix("opacityMatrix", this.opacityTexture._computeTextureMatrix());
  266. }
  267. if (this.reflectionTexture && BABYLON.StandardMaterial.ReflectionTextureEnabled) {
  268. if (this.reflectionTexture.isCube) {
  269. this._effect.setTexture("reflectionCubeSampler", this.reflectionTexture);
  270. } else {
  271. this._effect.setTexture("reflection2DSampler", this.reflectionTexture);
  272. }
  273. this._effect.setMatrix("reflectionMatrix", this.reflectionTexture._computeReflectionTextureMatrix());
  274. this._effect.setFloat3("vReflectionInfos", this.reflectionTexture.coordinatesMode, this.reflectionTexture.level, this.reflectionTexture.isCube ? 1 : 0);
  275. }
  276. if (this.emissiveTexture && BABYLON.StandardMaterial.EmissiveTextureEnabled) {
  277. this._effect.setTexture("emissiveSampler", this.emissiveTexture);
  278. this._effect.setFloat2("vEmissiveInfos", this.emissiveTexture.coordinatesIndex, this.emissiveTexture.level);
  279. this._effect.setMatrix("emissiveMatrix", this.emissiveTexture._computeTextureMatrix());
  280. }
  281. if (this.specularTexture && BABYLON.StandardMaterial.SpecularTextureEnabled) {
  282. this._effect.setTexture("specularSampler", this.specularTexture);
  283. this._effect.setFloat2("vSpecularInfos", this.specularTexture.coordinatesIndex, this.specularTexture.level);
  284. this._effect.setMatrix("specularMatrix", this.specularTexture._computeTextureMatrix());
  285. }
  286. if (this.bumpTexture && scene.getEngine().getCaps().standardDerivatives && BABYLON.StandardMaterial.BumpTextureEnabled) {
  287. this._effect.setTexture("bumpSampler", this.bumpTexture);
  288. this._effect.setFloat2("vBumpInfos", this.bumpTexture.coordinatesIndex, this.bumpTexture.level);
  289. this._effect.setMatrix("bumpMatrix", this.bumpTexture._computeTextureMatrix());
  290. }
  291. // Colors
  292. scene.ambientColor.multiplyToRef(this.ambientColor, this._globalAmbientColor);
  293. this._effect.setVector3("vEyePosition", scene.activeCamera.position);
  294. this._effect.setColor3("vAmbientColor", this._globalAmbientColor);
  295. this._effect.setColor4("vDiffuseColor", this._baseColor, this.alpha * mesh.visibility);
  296. this._effect.setColor4("vSpecularColor", this.specularColor, this.specularPower);
  297. this._effect.setColor3("vEmissiveColor", this.emissiveColor);
  298. if (scene.lightsEnabled) {
  299. var lightIndex = 0;
  300. for (var index = 0; index < scene.lights.length; index++) {
  301. var light = scene.lights[index];
  302. if (!light.isEnabled()) {
  303. continue;
  304. }
  305. if (mesh && light.excludedMeshes.indexOf(mesh) !== -1) {
  306. continue;
  307. }
  308. if (light instanceof BABYLON.PointLight) {
  309. // Point Light
  310. light.transferToEffect(this._effect, "vLightData" + lightIndex);
  311. } else if (light instanceof BABYLON.DirectionalLight) {
  312. // Directional Light
  313. light.transferToEffect(this._effect, "vLightData" + lightIndex);
  314. } else if (light instanceof BABYLON.SpotLight) {
  315. // Spot Light
  316. light.transferToEffect(this._effect, "vLightData" + lightIndex, "vLightDirection" + lightIndex);
  317. } else if (light instanceof BABYLON.HemisphericLight) {
  318. // Hemispheric Light
  319. light.transferToEffect(this._effect, "vLightData" + lightIndex, "vLightGround" + lightIndex);
  320. }
  321. light.diffuse.scaleToRef(light.intensity, this._scaledDiffuse);
  322. light.specular.scaleToRef(light.intensity, this._scaledSpecular);
  323. this._effect.setColor4("vLightDiffuse" + lightIndex, this._scaledDiffuse, light.range);
  324. this._effect.setColor3("vLightSpecular" + lightIndex, this._scaledSpecular);
  325. // Shadows
  326. var shadowGenerator = light.getShadowGenerator();
  327. if (mesh.receiveShadows && shadowGenerator) {
  328. world.multiplyToRef(shadowGenerator.getTransformMatrix(), this._lightMatrix);
  329. this._effect.setMatrix("lightMatrix" + lightIndex, this._lightMatrix);
  330. this._effect.setTexture("shadowSampler" + lightIndex, shadowGenerator.getShadowMap());
  331. this._effect.setFloat("darkness" + lightIndex, shadowGenerator.getDarkness());
  332. }
  333. lightIndex++;
  334. if (lightIndex == maxSimultaneousLights)
  335. break;
  336. }
  337. }
  338. if (scene.clipPlane) {
  339. var clipPlane = scene.clipPlane;
  340. this._effect.setFloat4("vClipPlane", clipPlane.normal.x, clipPlane.normal.y, clipPlane.normal.z, clipPlane.d);
  341. }
  342. // View
  343. if (scene.fogMode !== BABYLON.Scene.FOGMODE_NONE || this.reflectionTexture) {
  344. this._effect.setMatrix("view", scene.getViewMatrix());
  345. }
  346. // Fog
  347. if (scene.fogMode !== BABYLON.Scene.FOGMODE_NONE) {
  348. this._effect.setFloat4("vFogInfos", scene.fogMode, scene.fogStart, scene.fogEnd, scene.fogDensity);
  349. this._effect.setColor3("vFogColor", scene.fogColor);
  350. }
  351. };
  352. StandardMaterial.prototype.getAnimatables = function () {
  353. var results = [];
  354. if (this.diffuseTexture && this.diffuseTexture.animations && this.diffuseTexture.animations.length > 0) {
  355. results.push(this.diffuseTexture);
  356. }
  357. if (this.ambientTexture && this.ambientTexture.animations && this.ambientTexture.animations.length > 0) {
  358. results.push(this.ambientTexture);
  359. }
  360. if (this.opacityTexture && this.opacityTexture.animations && this.opacityTexture.animations.length > 0) {
  361. results.push(this.opacityTexture);
  362. }
  363. if (this.reflectionTexture && this.reflectionTexture.animations && this.reflectionTexture.animations.length > 0) {
  364. results.push(this.reflectionTexture);
  365. }
  366. if (this.emissiveTexture && this.emissiveTexture.animations && this.emissiveTexture.animations.length > 0) {
  367. results.push(this.emissiveTexture);
  368. }
  369. if (this.specularTexture && this.specularTexture.animations && this.specularTexture.animations.length > 0) {
  370. results.push(this.specularTexture);
  371. }
  372. if (this.bumpTexture && this.bumpTexture.animations && this.bumpTexture.animations.length > 0) {
  373. results.push(this.bumpTexture);
  374. }
  375. return results;
  376. };
  377. StandardMaterial.prototype.dispose = function (forceDisposeEffect) {
  378. if (this.diffuseTexture) {
  379. this.diffuseTexture.dispose();
  380. }
  381. if (this.ambientTexture) {
  382. this.ambientTexture.dispose();
  383. }
  384. if (this.opacityTexture) {
  385. this.opacityTexture.dispose();
  386. }
  387. if (this.reflectionTexture) {
  388. this.reflectionTexture.dispose();
  389. }
  390. if (this.emissiveTexture) {
  391. this.emissiveTexture.dispose();
  392. }
  393. if (this.specularTexture) {
  394. this.specularTexture.dispose();
  395. }
  396. if (this.bumpTexture) {
  397. this.bumpTexture.dispose();
  398. }
  399. _super.prototype.dispose.call(this, forceDisposeEffect);
  400. };
  401. StandardMaterial.prototype.clone = function (name) {
  402. var newStandardMaterial = new BABYLON.StandardMaterial(name, this.getScene());
  403. // Base material
  404. newStandardMaterial.checkReadyOnEveryCall = this.checkReadyOnEveryCall;
  405. newStandardMaterial.alpha = this.alpha;
  406. newStandardMaterial.wireframe = this.wireframe;
  407. newStandardMaterial.backFaceCulling = this.backFaceCulling;
  408. // Standard material
  409. if (this.diffuseTexture && this.diffuseTexture.clone) {
  410. newStandardMaterial.diffuseTexture = this.diffuseTexture.clone();
  411. }
  412. if (this.ambientTexture && this.ambientTexture.clone) {
  413. newStandardMaterial.ambientTexture = this.ambientTexture.clone();
  414. }
  415. if (this.opacityTexture && this.opacityTexture.clone) {
  416. newStandardMaterial.opacityTexture = this.opacityTexture.clone();
  417. }
  418. if (this.reflectionTexture && this.reflectionTexture.clone) {
  419. newStandardMaterial.reflectionTexture = this.reflectionTexture.clone();
  420. }
  421. if (this.emissiveTexture && this.emissiveTexture.clone) {
  422. newStandardMaterial.emissiveTexture = this.emissiveTexture.clone();
  423. }
  424. if (this.specularTexture && this.specularTexture.clone) {
  425. newStandardMaterial.specularTexture = this.specularTexture.clone();
  426. }
  427. if (this.bumpTexture && this.bumpTexture.clone) {
  428. newStandardMaterial.bumpTexture = this.bumpTexture.clone();
  429. }
  430. newStandardMaterial.ambientColor = this.ambientColor.clone();
  431. newStandardMaterial.diffuseColor = this.diffuseColor.clone();
  432. newStandardMaterial.specularColor = this.specularColor.clone();
  433. newStandardMaterial.specularPower = this.specularPower;
  434. newStandardMaterial.emissiveColor = this.emissiveColor.clone();
  435. return newStandardMaterial;
  436. };
  437. StandardMaterial.DiffuseTextureEnabled = true;
  438. StandardMaterial.AmbientTextureEnabled = true;
  439. StandardMaterial.OpacityTextureEnabled = true;
  440. StandardMaterial.ReflectionTextureEnabled = true;
  441. StandardMaterial.EmissiveTextureEnabled = true;
  442. StandardMaterial.SpecularTextureEnabled = true;
  443. StandardMaterial.BumpTextureEnabled = true;
  444. return StandardMaterial;
  445. })(BABYLON.Material);
  446. BABYLON.StandardMaterial = StandardMaterial;
  447. })(BABYLON || (BABYLON = {}));
  448. //# sourceMappingURL=babylon.standardMaterial.js.map