fozmo-3d-preview
Advanced tools
Comparing version 1.0.38 to 1.0.39
@@ -986,2 +986,18 @@ import { EEncryptExt, ENormalExt, ResLoaderManager } from './../manager/ResLoaderManager'; | ||
async loadHDR(url) { | ||
if (this.scene.background) { | ||
let oldBg = this.scene.background; | ||
this.scene.background = null; | ||
if (oldBg['dispose']) { | ||
oldBg['dispose'](); | ||
oldBg = null; | ||
} | ||
} | ||
if (this.scene.environment) { | ||
let oldEnv = this.scene.environment; | ||
this.scene.environment = null; | ||
if (oldEnv['dispose']) { | ||
oldEnv['dispose'](); | ||
oldEnv = null; | ||
} | ||
} | ||
if (url === 'neutral') { | ||
@@ -1024,2 +1040,10 @@ const textureUtils = new TextureUtils(this.renderer); | ||
setBGColor(c) { | ||
if (this.scene.environment) { | ||
let old = this.scene.environment; | ||
this.scene.environment = null; | ||
if (old.dispose) { | ||
old.dispose(); | ||
} | ||
old = null; | ||
} | ||
const width = 64; // 纹理的宽度 | ||
@@ -1026,0 +1050,0 @@ const height = 64; // 纹理的高度 |
{ | ||
"name": "fozmo-3d-preview", | ||
"version": "1.0.38", | ||
"version": "1.0.39", | ||
"description": "风之末 作品预览", | ||
@@ -5,0 +5,0 @@ "main": "lib/Fozmo3DPreview.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
199931
5922