|
@@ -1065,6 +1065,52 @@ module BABYLON {
|
|
return results;
|
|
return results;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public getActiveTextures(): BaseTexture[] {
|
|
|
|
+ var activeTextures = super.getActiveTextures();
|
|
|
|
+
|
|
|
|
+ if (this._diffuseTexture) {
|
|
|
|
+ activeTextures.push(this._diffuseTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this._ambientTexture) {
|
|
|
|
+ activeTextures.push(this._ambientTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this._opacityTexture) {
|
|
|
|
+ activeTextures.push(this._opacityTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this._reflectionTexture) {
|
|
|
|
+ activeTextures.push(this._reflectionTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this._emissiveTexture) {
|
|
|
|
+ activeTextures.push(this._emissiveTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this._specularTexture) {
|
|
|
|
+ activeTextures.push(this._specularTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this._bumpTexture) {
|
|
|
|
+ activeTextures.push(this._bumpTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this._lightmapTexture) {
|
|
|
|
+ activeTextures.push(this._lightmapTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this._refractionTexture) {
|
|
|
|
+ activeTextures.push(this._refractionTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this._cameraColorGradingTexture) {
|
|
|
|
+ activeTextures.push(this._cameraColorGradingTexture);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return activeTextures;
|
|
|
|
+ }
|
|
|
|
+
|
|
public dispose(forceDisposeEffect?: boolean, forceDisposeTextures?: boolean): void {
|
|
public dispose(forceDisposeEffect?: boolean, forceDisposeTextures?: boolean): void {
|
|
if (forceDisposeTextures) {
|
|
if (forceDisposeTextures) {
|
|
if (this._diffuseTexture) {
|
|
if (this._diffuseTexture) {
|