@babylonjs/lite-compat 1.21.0-preview → 1.22.0-preview

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { quatFromRotationMatrix, mat4FromQuatInto, markMaterialUboDirty, rebuildMaterial, createPbrMaterial, setPbrEmissive, setPbrClearCoat, setPbrSheen, setPbrAnisotropy, setPbrIridescence, setPbrGammaAlbedo, createSolidTexture2D, createStandardMaterial, createMeshFromData, setMeshVisible, computeAabb, resizeMeshGeometry, removeFromScene, createLineSystem, createLineMaterial, setLineMaterialColor, setThinInstances, setThinInstanceColors, cloneTransformNode, updateDashedLines, createDashedLines, updateLineSystem, createExtrudeShape, createTube, createRibbon, createPolyhedron, createDisc, createTorusKnot, createTorus, createCylinder, createPlane, createGroundFromHeightMap, updateMeshUvs, createGround, createSphere, createBox, createTransformNode, addToScene, setParent } from "@babylonjs/lite";
4
+ import { quatFromRotationMatrix, mat4FromQuatInto, markMaterialUboDirty, rebuildMaterial, createPbrMaterial, setPbrEmissive, setPbrClearCoat, setPbrSheen, setPbrAnisotropy, setPbrIridescence, setPbrGammaAlbedo, createSolidTexture2D, createStandardMaterial, setStandardBumpTexture, setStandardEmissiveTexture, createMeshFromData, setMeshVisible, computeAabb, resizeMeshGeometry, removeFromScene, createLineSystem, createLineMaterial, setLineMaterialColor, setThinInstances, setThinInstanceColors, cloneTransformNode, updateDashedLines, createDashedLines, updateLineSystem, createExtrudeShape, createTube, createRibbon, createPolyhedron, createDisc, createTorusKnot, createTorus, createCylinder, createPlane, createGroundFromHeightMap, updateMeshUvs, createGround, createSphere, createBox, createTransformNode, addToScene, setParent } from "@babylonjs/lite";
5
5
  class LiteCompatError extends Error {
6
6
  constructor(api, detail) {
7
7
  super(detail ? `'${api}' is not supported by the Babylon Lite compat layer. ${detail}` : `'${api}' is not supported by the Babylon Lite compat layer.`);
@@ -1512,7 +1512,7 @@ class StandardMaterial extends PushMaterial {
1512
1512
  }
1513
1513
  set bumpTexture(texture) {
1514
1514
  this._bumpTexture = texture;
1515
- this._lite.bumpTexture = (texture == null ? void 0 : texture._lite) ?? null;
1515
+ setStandardBumpTexture(this._lite, (texture == null ? void 0 : texture._lite) ?? null);
1516
1516
  this._watchTexture(texture);
1517
1517
  this._markDirty();
1518
1518
  }
@@ -1521,7 +1521,7 @@ class StandardMaterial extends PushMaterial {
1521
1521
  }
1522
1522
  set emissiveTexture(texture) {
1523
1523
  this._emissiveTexture = texture;
1524
- this._lite.emissiveTexture = (texture == null ? void 0 : texture._lite) ?? null;
1524
+ setStandardEmissiveTexture(this._lite, (texture == null ? void 0 : texture._lite) ?? null);
1525
1525
  this._watchTexture(texture);
1526
1526
  this._markDirty();
1527
1527
  }
@@ -1555,11 +1555,11 @@ class StandardMaterial extends PushMaterial {
1555
1555
  }
1556
1556
  const bump = this._bumpTexture;
1557
1557
  if (bump == null ? void 0 : bump._lite) {
1558
- this._lite.bumpTexture = bump._lite;
1558
+ setStandardBumpTexture(this._lite, bump._lite);
1559
1559
  }
1560
1560
  const emissive = this._emissiveTexture;
1561
1561
  if (emissive == null ? void 0 : emissive._lite) {
1562
- this._lite.emissiveTexture = emissive._lite;
1562
+ setStandardEmissiveTexture(this._lite, emissive._lite);
1563
1563
  }
1564
1564
  this._markDirty();
1565
1565
  }
@@ -3361,4 +3361,4 @@ export {
3361
3361
  PBRMetallicRoughnessMaterial as y,
3362
3362
  PBRSheenConfiguration as z
3363
3363
  };
3364
- //# sourceMappingURL=meshes-eNVvq5sm.js.map
3364
+ //# sourceMappingURL=meshes-CidWpEh8.js.map