@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
18 lines • 766 B
JavaScript
import { DecalMapConfiguration } from "../material.decalMapConfiguration.js";
import { PBRBaseMaterial } from "./pbrBaseMaterial.js";
Object.defineProperty(PBRBaseMaterial.prototype, "decalMap", {
get: function () {
if (!this._decalMap) {
if (this._uniformBufferLayoutBuilt) {
// Material already used to display a mesh, so it's invalid to add the decal map plugin at that point
// Returns null instead of having new DecalMapConfiguration throws an exception
return null;
}
this._decalMap = new DecalMapConfiguration(this);
}
return this._decalMap;
},
enumerable: true,
configurable: true,
});
//# sourceMappingURL=pbrMaterial.decalMap.js.map