fozmo-3d-preview
Advanced tools
Comparing version 1.0.47 to 1.0.48
@@ -266,2 +266,4 @@ import { EEncryptExt, ENormalExt, ResLoaderManager } from './../manager/ResLoaderManager'; | ||
this._params.SSAAEnable = false; | ||
this._params.AOEnable = false; | ||
this._params.lutEnabled = false; | ||
} | ||
@@ -907,10 +909,21 @@ else { | ||
} | ||
this._gtaoPass.enabled = this._params.AOEnable; | ||
this._gtaoPass.blendIntensity = this._params.AOBlendIntensity; | ||
this._gtaoPass.updateGtaoMaterial(this._params.aoParameters); | ||
this._gtaoPass.updatePdMaterial(this._params.pdParameters); | ||
this._smaaPass.enabled = this._params.SMAAEnable; | ||
this._ssaaPass.enabled = this._params.SSAAEnable; | ||
this._ssaaPass.unbiased = this._params.SSAAunbiased; | ||
this._ssaaPass.sampleLevel = this._params.SSAAsampleLevel; | ||
if (!Utils.isPhone()) { | ||
this._gtaoPass.enabled = this._params.AOEnable; | ||
this._gtaoPass.blendIntensity = this._params.AOBlendIntensity; | ||
this._gtaoPass.updateGtaoMaterial(this._params.aoParameters); | ||
this._gtaoPass.updatePdMaterial(this._params.pdParameters); | ||
this._smaaPass.enabled = this._params.SMAAEnable; | ||
this._ssaaPass.enabled = this._params.SSAAEnable; | ||
this._ssaaPass.unbiased = this._params.SSAAunbiased; | ||
this._ssaaPass.sampleLevel = this._params.SSAAsampleLevel; | ||
} | ||
else { | ||
this._params.SMAAEnable = true; | ||
this._params.SSAAEnable = false; | ||
this._params.AOEnable = false; | ||
this._params.lutEnabled = false; | ||
this._gtaoPass.enabled = false; | ||
this._ssaaPass.enabled = false; | ||
this._smaaPass.enabled = this._params.SMAAEnable; | ||
} | ||
this.renderer.toneMappingExposure = this._params.exposure; | ||
@@ -1153,15 +1166,13 @@ this.renderer.toneMapping = toneMappingOptions[this._params.toneMapping]; | ||
loop(delta) { | ||
if (this._lutPass && !Utils.isPhone()) { | ||
this._lutPass.enabled = this._params.lutEnabled && Boolean(lutMap[this._params.lut]); | ||
this._lutPass.intensity = this._params.lutIntensity; | ||
if (lutMap[this._params.lut]) { | ||
const lut = lutMap[this._params.lut]; | ||
this._lutPass.lut = lut.texture3D; | ||
if (this._lutPass) { | ||
if (!Utils.isPhone()) { | ||
this._lutPass.enabled = this._params.lutEnabled && Boolean(lutMap[this._params.lut]); | ||
this._lutPass.intensity = this._params.lutIntensity; | ||
if (lutMap[this._params.lut]) { | ||
const lut = lutMap[this._params.lut]; | ||
this._lutPass.lut = lut.texture3D; | ||
} | ||
} | ||
} | ||
if (Utils.isPhone() && this._gtaoPass) { | ||
this._gtaoPass.enabled = false; | ||
if (this._ssaaPass.enabled) { | ||
this._ssaaPass.enabled = false; | ||
this._smaaPass.enabled = true; | ||
else { | ||
this._lutPass.enabled = false; | ||
} | ||
@@ -1168,0 +1179,0 @@ } |
{ | ||
"name": "fozmo-3d-preview", | ||
"version": "1.0.47", | ||
"version": "1.0.48", | ||
"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
201928
5974