Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fozmo-3d-preview

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fozmo-3d-preview - npm Package Compare versions

Comparing version 1.0.47 to 1.0.48

51

lib/scenes/MainScene.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc