UNPKG

@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.

25 lines 845 B
/** This file must only contain pure code and pure imports */ import { DecalMapConfiguration } from "../material.decalMapConfiguration.pure.js"; import { PBRBaseMaterial } from "./pbrBaseMaterial.pure.js"; let _Registered = false; /** * Register side effects for pbrMaterialDecalMap. * Safe to call multiple times; only the first call has an effect. */ export function RegisterPbrMaterialDecalMap() { if (_Registered) { return; } _Registered = true; Object.defineProperty(PBRBaseMaterial.prototype, "decalMap", { get: function () { if (!this._decalMap) { this._decalMap = new DecalMapConfiguration(this); } return this._decalMap; }, enumerable: true, configurable: true, }); } //# sourceMappingURL=pbrMaterial.decalMap.pure.js.map