standardMaterial.decalMap.js 773 B

123456789101112131415161718
  1. import { DecalMapConfiguration } from "./material.decalMapConfiguration.js";
  2. import { StandardMaterial } from "./standardMaterial.js";
  3. Object.defineProperty(StandardMaterial.prototype, "decalMap", {
  4. get: function () {
  5. if (!this._decalMap) {
  6. if (this._uniformBufferLayoutBuilt) {
  7. // Material already used to display a mesh, so it's invalid to add the decal map plugin at that point
  8. // Returns null instead of having new DecalMapConfiguration throws an exception
  9. return null;
  10. }
  11. this._decalMap = new DecalMapConfiguration(this);
  12. }
  13. return this._decalMap;
  14. },
  15. enumerable: true,
  16. configurable: true,
  17. });
  18. //# sourceMappingURL=standardMaterial.decalMap.js.map