@needle-tools/engine 4.5.5-next.f053174 → 4.5.6-next.1d4dc79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/{needle-engine.bundle-DvRTYg0j.js → needle-engine.bundle-BgKkDMl2.js} +3 -3
- package/dist/{needle-engine.bundle-DFfLpZpn.min.js → needle-engine.bundle-D9kyS8Tj.min.js} +1 -1
- package/dist/{needle-engine.bundle-Dx2hV9Bu.umd.cjs → needle-engine.bundle-DqD4rb6x.umd.cjs} +2 -2
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/package.json +2 -3
- package/plugins/common/license.js +12 -2
- package/dist/gltf-progressive-BEgFkNGc.light.min.js +0 -8
- package/dist/gltf-progressive-C9Dguupm.light.umd.cjs +0 -8
- package/dist/gltf-progressive-ZWp05WqX.light.js +0 -1054
- package/dist/needle-engine.bundle-5YrltOTW.light.umd.cjs +0 -1559
- package/dist/needle-engine.bundle-Bjtl-M4D.light.js +0 -43245
- package/dist/needle-engine.bundle-BxW8rOic.light.min.js +0 -1559
- package/dist/needle-engine.light.d.ts +0 -132
- package/dist/needle-engine.light.js +0 -617
- package/dist/needle-engine.light.min.js +0 -1
- package/dist/needle-engine.light.umd.cjs +0 -1
- package/dist/postprocessing-FosLwPQS.light.min.js +0 -1637
- package/dist/postprocessing-WrSov-2f.light.umd.cjs +0 -1637
- package/dist/postprocessing-hAt4uO_H.light.js +0 -14814
- package/dist/rapier-CU5cp-KB.light.js +0 -5142
- package/dist/rapier-CUe6_xwE.light.umd.cjs +0 -1
- package/dist/rapier-CyWhltHY.light.min.js +0 -1
- package/dist/three-1JG7vpNC.light.js +0 -32110
- package/dist/three-CFtLGNtV.light.min.js +0 -3874
- package/dist/three-Cn7l9Zcu.light.umd.cjs +0 -3874
- package/dist/three-examples-BEj-FSbn.light.umd.cjs +0 -501
- package/dist/three-examples-BnHP6TJv.light.min.js +0 -501
- package/dist/three-examples-D7sODHUy.light.js +0 -10800
- package/dist/three-mesh-ui-455xHppU.light.umd.cjs +0 -406
- package/dist/three-mesh-ui-d5QV--Fw.light.js +0 -6230
- package/dist/three-mesh-ui-d9DMm4Vu.light.min.js +0 -406
- package/dist/vendor-C6uo3n0R.light.js +0 -14010
- package/dist/vendor-Chn-TYVI.light.umd.cjs +0 -1121
- package/dist/vendor-D_SttDVr.light.min.js +0 -1121
|
@@ -1,1637 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./three-Cn7l9Zcu.light.umd.cjs"),Zt=require("./three-examples-BEj-FSbn.light.umd.cjs");/**
|
|
2
|
-
* postprocessing v6.37.2 build Fri Mar 28 2025
|
|
3
|
-
* https://github.com/pmndrs/postprocessing
|
|
4
|
-
* Copyright 2015-2025 Raoul van Rüschen
|
|
5
|
-
* @license Zlib
|
|
6
|
-
*/var jt="6.37.2",Jt=class{dispose(){}},Be=1/1e3,qt=1e3,lt=class{constructor(){this.startTime=performance.now(),this.previousTime=0,this.currentTime=0,this._delta=0,this._elapsed=0,this._fixedDelta=1e3/60,this.timescale=1,this.useFixedDelta=!1,this._autoReset=!1}get autoReset(){return this._autoReset}set autoReset(e){typeof document<"u"&&document.hidden!==void 0&&(e?document.addEventListener("visibilitychange",this):document.removeEventListener("visibilitychange",this),this._autoReset=e)}get delta(){return this._delta*Be}get fixedDelta(){return this._fixedDelta*Be}set fixedDelta(e){this._fixedDelta=e*qt}get elapsed(){return this._elapsed*Be}update(e){this.useFixedDelta?this._delta=this.fixedDelta:(this.previousTime=this.currentTime,this.currentTime=(e!==void 0?e:performance.now())-this.startTime,this._delta=this.currentTime-this.previousTime),this._delta*=this.timescale,this._elapsed+=this._delta}reset(){this._delta=0,this._elapsed=0,this.currentTime=performance.now()-this.startTime}getDelta(){return this.delta}getElapsed(){return this.elapsed}handleEvent(e){document.hidden||(this.currentTime=performance.now()-this.startTime)}dispose(){this.autoReset=!1}},_t=(()=>{const e=new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),t=new Float32Array([0,0,2,0,0,2]),r=new i.BufferGeometry;return r.setAttribute("position",new i.BufferAttribute(e,3)),r.setAttribute("uv",new i.BufferAttribute(t,2)),r})(),M=class Fe{static get fullscreenGeometry(){return _t}constructor(t="Pass",r=new i.Scene,a=new i.Camera){this.name=t,this.renderer=null,this.scene=r,this.camera=a,this.screen=null,this.rtt=!0,this.needsSwap=!0,this.needsDepthTexture=!1,this.enabled=!0}get renderToScreen(){return!this.rtt}set renderToScreen(t){if(this.rtt===t){const r=this.fullscreenMaterial;r!==null&&(r.needsUpdate=!0),this.rtt=!t}}set mainScene(t){}set mainCamera(t){}setRenderer(t){this.renderer=t}isEnabled(){return this.enabled}setEnabled(t){this.enabled=t}get fullscreenMaterial(){return this.screen!==null?this.screen.material:null}set fullscreenMaterial(t){let r=this.screen;r!==null?r.material=t:(r=new i.Mesh(Fe.fullscreenGeometry,t),r.frustumCulled=!1,this.scene===null&&(this.scene=new i.Scene),this.scene.add(r),this.screen=r)}getFullscreenMaterial(){return this.fullscreenMaterial}setFullscreenMaterial(t){this.fullscreenMaterial=t}getDepthTexture(){return null}setDepthTexture(t,r=i.BasicDepthPacking){}render(t,r,a,s,o){throw new Error("Render method not implemented!")}setSize(t,r){}initialize(t,r,a){}dispose(){for(const t of Object.keys(this)){const r=this[t];(r instanceof i.WebGLRenderTarget||r instanceof i.Material||r instanceof i.Texture||r instanceof Fe)&&this[t].dispose()}this.fullscreenMaterial!==null&&this.fullscreenMaterial.dispose()}},ut=class extends M{constructor(){super("ClearMaskPass",null,null),this.needsSwap=!1}render(e,t,r,a,s){const o=e.state.buffers.stencil;o.setLocked(!1),o.setTest(!1)}},$t=`#include <common>
|
|
7
|
-
#include <dithering_pars_fragment>
|
|
8
|
-
#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
9
|
-
uniform mediump sampler2D inputBuffer;
|
|
10
|
-
#else
|
|
11
|
-
uniform lowp sampler2D inputBuffer;
|
|
12
|
-
#endif
|
|
13
|
-
uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuffer,vUv);gl_FragColor=opacity*texel;
|
|
14
|
-
#include <colorspace_fragment>
|
|
15
|
-
#include <dithering_fragment>
|
|
16
|
-
}`,K="varying vec2 vUv;void main(){vUv=position.xy*0.5+0.5;gl_Position=vec4(position.xy,1.0,1.0);}",ve=class extends i.ShaderMaterial{constructor(){super({name:"CopyMaterial",uniforms:{inputBuffer:new i.Uniform$1(null),opacity:new i.Uniform$1(1)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:$t,vertexShader:K})}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}getOpacity(e){return this.uniforms.opacity.value}setOpacity(e){this.uniforms.opacity.value=e}},Se=class extends M{constructor(e,t=!0){super("CopyPass"),this.fullscreenMaterial=new ve,this.needsSwap=!1,this.renderTarget=e,e===void 0&&(this.renderTarget=new i.WebGLRenderTarget(1,1,{minFilter:i.LinearFilter,magFilter:i.LinearFilter,stencilBuffer:!1,depthBuffer:!1}),this.renderTarget.texture.name="CopyPass.Target"),this.autoResize=t}get resize(){return this.autoResize}set resize(e){this.autoResize=e}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}setAutoResizeEnabled(e){this.autoResize=e}render(e,t,r,a,s){this.fullscreenMaterial.inputBuffer=t.texture,e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){this.autoResize&&this.renderTarget.setSize(e,t)}initialize(e,t,r){r!==void 0&&(this.renderTarget.texture.type=r,r!==i.UnsignedByteType?this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1":e!==null&&e.outputColorSpace===i.SRGBColorSpace&&(this.renderTarget.texture.colorSpace=i.SRGBColorSpace))}},Xe=new i.Color,_=class extends M{constructor(e=!0,t=!0,r=!1){super("ClearPass",null,null),this.needsSwap=!1,this.color=e,this.depth=t,this.stencil=r,this.overrideClearColor=null,this.overrideClearAlpha=-1}setClearFlags(e,t,r){this.color=e,this.depth=t,this.stencil=r}getOverrideClearColor(){return this.overrideClearColor}setOverrideClearColor(e){this.overrideClearColor=e}getOverrideClearAlpha(){return this.overrideClearAlpha}setOverrideClearAlpha(e){this.overrideClearAlpha=e}render(e,t,r,a,s){const o=this.overrideClearColor,n=this.overrideClearAlpha,l=e.getClearAlpha(),u=o!==null,c=n>=0;u?(e.getClearColor(Xe),e.setClearColor(o,c?n:l)):c&&e.setClearAlpha(n),e.setRenderTarget(this.renderToScreen?null:t),e.clear(this.color,this.depth,this.stencil),u?e.setClearColor(Xe,l):c&&e.setClearAlpha(l)}},ct=class extends M{constructor(e,t){super("MaskPass",e,t),this.needsSwap=!1,this.clearPass=new _(!1,!1,!0),this.inverse=!1}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get inverted(){return this.inverse}set inverted(e){this.inverse=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getClearPass(){return this.clearPass}isInverted(){return this.inverted}setInverted(e){this.inverted=e}render(e,t,r,a,s){const o=e.getContext(),n=e.state.buffers,l=this.scene,u=this.camera,c=this.clearPass,f=this.inverted?0:1,h=1-f;n.color.setMask(!1),n.depth.setMask(!1),n.color.setLocked(!0),n.depth.setLocked(!0),n.stencil.setTest(!0),n.stencil.setOp(o.REPLACE,o.REPLACE,o.REPLACE),n.stencil.setFunc(o.ALWAYS,f,4294967295),n.stencil.setClear(h),n.stencil.setLocked(!0),this.clearPass.enabled&&(this.renderToScreen?c.render(e,null):(c.render(e,t),c.render(e,r))),this.renderToScreen?(e.setRenderTarget(null),e.render(l,u)):(e.setRenderTarget(t),e.render(l,u),e.setRenderTarget(r),e.render(l,u)),n.color.setLocked(!1),n.depth.setLocked(!1),n.stencil.setLocked(!1),n.stencil.setFunc(o.EQUAL,1,4294967295),n.stencil.setOp(o.KEEP,o.KEEP,o.KEEP),n.stencil.setLocked(!0)}},ei=class{constructor(e=null,{depthBuffer:t=!0,stencilBuffer:r=!1,multisampling:a=0,frameBufferType:s}={}){this.renderer=null,this.inputBuffer=this.createBuffer(t,r,s,a),this.outputBuffer=this.inputBuffer.clone(),this.copyPass=new Se,this.depthTexture=null,this.passes=[],this.timer=new lt,this.autoRenderToScreen=!0,this.setRenderer(e)}get multisampling(){return this.inputBuffer.samples||0}set multisampling(e){const t=this.inputBuffer,r=this.multisampling;r>0&&e>0?(this.inputBuffer.samples=e,this.outputBuffer.samples=e,this.inputBuffer.dispose(),this.outputBuffer.dispose()):r!==e&&(this.inputBuffer.dispose(),this.outputBuffer.dispose(),this.inputBuffer=this.createBuffer(t.depthBuffer,t.stencilBuffer,t.texture.type,e),this.inputBuffer.depthTexture=this.depthTexture,this.outputBuffer=this.inputBuffer.clone())}getTimer(){return this.timer}getRenderer(){return this.renderer}setRenderer(e){if(this.renderer=e,e!==null){const t=e.getSize(new i.Vector2),r=e.getContext().getContextAttributes().alpha,a=this.inputBuffer.texture.type;a===i.UnsignedByteType&&e.outputColorSpace===i.SRGBColorSpace&&(this.inputBuffer.texture.colorSpace=i.SRGBColorSpace,this.outputBuffer.texture.colorSpace=i.SRGBColorSpace,this.inputBuffer.dispose(),this.outputBuffer.dispose()),e.autoClear=!1,this.setSize(t.width,t.height);for(const s of this.passes)s.initialize(e,r,a)}}replaceRenderer(e,t=!0){const r=this.renderer,a=r.domElement.parentNode;return this.setRenderer(e),t&&a!==null&&(a.removeChild(r.domElement),a.appendChild(e.domElement)),r}createDepthTexture(){const e=this.depthTexture=new i.DepthTexture;return this.inputBuffer.depthTexture=e,this.inputBuffer.dispose(),this.inputBuffer.stencilBuffer?(e.format=i.DepthStencilFormat,e.type=i.UnsignedInt248Type):e.type=i.UnsignedIntType,e}deleteDepthTexture(){if(this.depthTexture!==null){this.depthTexture.dispose(),this.depthTexture=null,this.inputBuffer.depthTexture=null,this.inputBuffer.dispose();for(const e of this.passes)e.setDepthTexture(null)}}createBuffer(e,t,r,a){const s=this.renderer,o=s===null?new i.Vector2:s.getDrawingBufferSize(new i.Vector2),n={minFilter:i.LinearFilter,magFilter:i.LinearFilter,stencilBuffer:t,depthBuffer:e,type:r},l=new i.WebGLRenderTarget(o.width,o.height,n);return a>0&&(l.ignoreDepthForMultisampleCopy=!1,l.samples=a),r===i.UnsignedByteType&&s!==null&&s.outputColorSpace===i.SRGBColorSpace&&(l.texture.colorSpace=i.SRGBColorSpace),l.texture.name="EffectComposer.Buffer",l.texture.generateMipmaps=!1,l}setMainScene(e){for(const t of this.passes)t.mainScene=e}setMainCamera(e){for(const t of this.passes)t.mainCamera=e}addPass(e,t){const r=this.passes,a=this.renderer,s=a.getDrawingBufferSize(new i.Vector2),o=a.getContext().getContextAttributes().alpha,n=this.inputBuffer.texture.type;if(e.setRenderer(a),e.setSize(s.width,s.height),e.initialize(a,o,n),this.autoRenderToScreen&&(r.length>0&&(r[r.length-1].renderToScreen=!1),e.renderToScreen&&(this.autoRenderToScreen=!1)),t!==void 0?r.splice(t,0,e):r.push(e),this.autoRenderToScreen&&(r[r.length-1].renderToScreen=!0),e.needsDepthTexture||this.depthTexture!==null)if(this.depthTexture===null){const l=this.createDepthTexture();for(e of r)e.setDepthTexture(l)}else e.setDepthTexture(this.depthTexture)}removePass(e){const t=this.passes,r=t.indexOf(e);if(r!==-1&&t.splice(r,1).length>0){if(this.depthTexture!==null){const o=(l,u)=>l||u.needsDepthTexture;t.reduce(o,!1)||(e.getDepthTexture()===this.depthTexture&&e.setDepthTexture(null),this.deleteDepthTexture())}this.autoRenderToScreen&&r===t.length&&(e.renderToScreen=!1,t.length>0&&(t[t.length-1].renderToScreen=!0))}}removeAllPasses(){const e=this.passes;this.deleteDepthTexture(),e.length>0&&(this.autoRenderToScreen&&(e[e.length-1].renderToScreen=!1),this.passes=[])}render(e){const t=this.renderer,r=this.copyPass;let a=this.inputBuffer,s=this.outputBuffer,o=!1,n,l,u;e===void 0&&(this.timer.update(),e=this.timer.getDelta());for(const c of this.passes)c.enabled&&(c.render(t,a,s,e,o),c.needsSwap&&(o&&(r.renderToScreen=c.renderToScreen,n=t.getContext(),l=t.state.buffers.stencil,l.setFunc(n.NOTEQUAL,1,4294967295),r.render(t,a,s,e,o),l.setFunc(n.EQUAL,1,4294967295)),u=a,a=s,s=u),c instanceof ct?o=!0:c instanceof ut&&(o=!1))}setSize(e,t,r){const a=this.renderer,s=a.getSize(new i.Vector2);(e===void 0||t===void 0)&&(e=s.width,t=s.height),(s.width!==e||s.height!==t)&&a.setSize(e,t,r);const o=a.getDrawingBufferSize(new i.Vector2);this.inputBuffer.setSize(o.width,o.height),this.outputBuffer.setSize(o.width,o.height);for(const n of this.passes)n.setSize(o.width,o.height)}reset(){this.dispose(),this.autoRenderToScreen=!0}dispose(){for(const e of this.passes)e.dispose();this.passes=[],this.inputBuffer!==null&&this.inputBuffer.dispose(),this.outputBuffer!==null&&this.outputBuffer.dispose(),this.deleteDepthTexture(),this.copyPass.dispose(),this.timer.dispose(),M.fullscreenGeometry.dispose()}},I={NONE:0,DEPTH:1,CONVOLUTION:2},S={FRAGMENT_HEAD:"FRAGMENT_HEAD",FRAGMENT_MAIN_UV:"FRAGMENT_MAIN_UV",FRAGMENT_MAIN_IMAGE:"FRAGMENT_MAIN_IMAGE",VERTEX_HEAD:"VERTEX_HEAD",VERTEX_MAIN_SUPPORT:"VERTEX_MAIN_SUPPORT"},ft=class{constructor(){this.shaderParts=new Map([[S.FRAGMENT_HEAD,null],[S.FRAGMENT_MAIN_UV,null],[S.FRAGMENT_MAIN_IMAGE,null],[S.VERTEX_HEAD,null],[S.VERTEX_MAIN_SUPPORT,null]]),this.defines=new Map,this.uniforms=new Map,this.blendModes=new Map,this.extensions=new Set,this.attributes=I.NONE,this.varyings=new Set,this.uvTransformation=!1,this.readDepth=!1,this.colorSpace=i.LinearSRGBColorSpace}};function Ze(e){let t;if(e===0)t=new Float64Array(0);else if(e===1)t=new Float64Array([1]);else if(e>1){let r=new Float64Array(e),a=new Float64Array(e);for(let s=1;s<=e;++s){for(let o=0;o<s;++o)a[o]=o===0||o===s-1?1:r[o-1]+r[o];t=a,a=r,r=t}}return t}var ht=class{constructor(e,t=2){this.weights=null,this.offsets=null,this.linearWeights=null,this.linearOffsets=null,this.generate(e,t)}get steps(){return this.offsets===null?0:this.offsets.length}get linearSteps(){return this.linearOffsets===null?0:this.linearOffsets.length}generate(e,t){if(e<3||e>1020)throw new Error("The kernel size must be in the range [3, 1020]");const r=e+t*2,a=t>0?Ze(r).slice(t,-t):Ze(r),s=Math.floor((a.length-1)/2),o=a.reduce((h,d)=>h+d,0),n=a.slice(s),l=[...Array(s+1).keys()],u=new Float64Array(Math.floor(l.length/2)),c=new Float64Array(u.length);u[0]=n[0]/o;for(let h=1,d=1,v=l.length-1;h<v;h+=2,++d){const g=l[h],m=l[h+1],T=n[h],w=n[h+1],D=T+w,x=(g*T+m*w)/D;u[d]=D/o,c[d]=x}for(let h=0,d=n.length,v=1/o;h<d;++h)n[h]*=v;const f=(u.reduce((h,d)=>h+d,0)-u[0]*.5)*2;if(f!==0)for(let h=0,d=u.length,v=1/f;h<d;++h)u[h]*=v;this.offsets=l,this.weights=n,this.linearOffsets=c,this.linearWeights=u}},ti=class{getDelta(){return NaN}getElapsed(){return NaN}},ii=class{initialize(e,t,r){}},Me=!1,Le=class{constructor(e=null){this.originalMaterials=new Map,this.material=null,this.materials=null,this.materialsBackSide=null,this.materialsDoubleSide=null,this.materialsFlatShaded=null,this.materialsFlatShadedBackSide=null,this.materialsFlatShadedDoubleSide=null,this.setMaterial(e),this.meshCount=0,this.replaceMaterial=t=>{if(t.isMesh){let r;if(t.material.flatShading)switch(t.material.side){case i.DoubleSide:r=this.materialsFlatShadedDoubleSide;break;case i.BackSide:r=this.materialsFlatShadedBackSide;break;default:r=this.materialsFlatShaded;break}else switch(t.material.side){case i.DoubleSide:r=this.materialsDoubleSide;break;case i.BackSide:r=this.materialsBackSide;break;default:r=this.materials;break}this.originalMaterials.set(t,t.material),t.isSkinnedMesh?t.material=r[2]:t.isInstancedMesh?t.material=r[1]:t.material=r[0],++this.meshCount}}}cloneMaterial(e){if(!(e instanceof i.ShaderMaterial))return e.clone();const t=e.uniforms,r=new Map;for(const s in t){const o=t[s].value;o.isRenderTargetTexture&&(t[s].value=null,r.set(s,o))}const a=e.clone();for(const s of r)t[s[0]].value=s[1],a.uniforms[s[0]].value=s[1];return a}setMaterial(e){if(this.disposeMaterials(),this.material=e,e!==null){const t=this.materials=[this.cloneMaterial(e),this.cloneMaterial(e),this.cloneMaterial(e)];for(const r of t)r.uniforms=Object.assign({},e.uniforms),r.side=i.FrontSide;t[2].skinning=!0,this.materialsBackSide=t.map(r=>{const a=this.cloneMaterial(r);return a.uniforms=Object.assign({},e.uniforms),a.side=i.BackSide,a}),this.materialsDoubleSide=t.map(r=>{const a=this.cloneMaterial(r);return a.uniforms=Object.assign({},e.uniforms),a.side=i.DoubleSide,a}),this.materialsFlatShaded=t.map(r=>{const a=this.cloneMaterial(r);return a.uniforms=Object.assign({},e.uniforms),a.flatShading=!0,a}),this.materialsFlatShadedBackSide=t.map(r=>{const a=this.cloneMaterial(r);return a.uniforms=Object.assign({},e.uniforms),a.flatShading=!0,a.side=i.BackSide,a}),this.materialsFlatShadedDoubleSide=t.map(r=>{const a=this.cloneMaterial(r);return a.uniforms=Object.assign({},e.uniforms),a.flatShading=!0,a.side=i.DoubleSide,a})}}render(e,t,r){const a=e.shadowMap.enabled;if(e.shadowMap.enabled=!1,Me){const s=this.originalMaterials;this.meshCount=0,t.traverse(this.replaceMaterial),e.render(t,r);for(const o of s)o[0].material=o[1];this.meshCount!==s.size&&s.clear()}else{const s=t.overrideMaterial;t.overrideMaterial=this.material,e.render(t,r),t.overrideMaterial=s}e.shadowMap.enabled=a}disposeMaterials(){if(this.material!==null){const e=this.materials.concat(this.materialsBackSide).concat(this.materialsDoubleSide).concat(this.materialsFlatShaded).concat(this.materialsFlatShadedBackSide).concat(this.materialsFlatShadedDoubleSide);for(const t of e)t.dispose()}}dispose(){this.originalMaterials.clear(),this.disposeMaterials()}static get workaroundEnabled(){return Me}static set workaroundEnabled(e){Me=e}},ri=class{setSize(e,t){}},V=-1,A=class extends i.EventDispatcher{constructor(e,t=V,r=V,a=1){super(),this.resizable=e,this.baseSize=new i.Vector2(1,1),this.preferredSize=new i.Vector2(t,r),this.target=this.preferredSize,this.s=a,this.effectiveSize=new i.Vector2,this.addEventListener("change",()=>this.updateEffectiveSize()),this.updateEffectiveSize()}updateEffectiveSize(){const e=this.baseSize,t=this.preferredSize,r=this.effectiveSize,a=this.scale;t.width!==V?r.width=t.width:t.height!==V?r.width=Math.round(t.height*(e.width/Math.max(e.height,1))):r.width=Math.round(e.width*a),t.height!==V?r.height=t.height:t.width!==V?r.height=Math.round(t.width/Math.max(e.width/Math.max(e.height,1),1)):r.height=Math.round(e.height*a)}get width(){return this.effectiveSize.width}set width(e){this.preferredWidth=e}get height(){return this.effectiveSize.height}set height(e){this.preferredHeight=e}getWidth(){return this.width}getHeight(){return this.height}get scale(){return this.s}set scale(e){this.s!==e&&(this.s=e,this.preferredSize.setScalar(V),this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getScale(){return this.scale}setScale(e){this.scale=e}get baseWidth(){return this.baseSize.width}set baseWidth(e){this.baseSize.width!==e&&(this.baseSize.width=e,this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getBaseWidth(){return this.baseWidth}setBaseWidth(e){this.baseWidth=e}get baseHeight(){return this.baseSize.height}set baseHeight(e){this.baseSize.height!==e&&(this.baseSize.height=e,this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getBaseHeight(){return this.baseHeight}setBaseHeight(e){this.baseHeight=e}setBaseSize(e,t){(this.baseSize.width!==e||this.baseSize.height!==t)&&(this.baseSize.set(e,t),this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}get preferredWidth(){return this.preferredSize.width}set preferredWidth(e){this.preferredSize.width!==e&&(this.preferredSize.width=e,this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getPreferredWidth(){return this.preferredWidth}setPreferredWidth(e){this.preferredWidth=e}get preferredHeight(){return this.preferredSize.height}set preferredHeight(e){this.preferredSize.height!==e&&(this.preferredSize.height=e,this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getPreferredHeight(){return this.preferredHeight}setPreferredHeight(e){this.preferredHeight=e}setPreferredSize(e,t){(this.preferredSize.width!==e||this.preferredSize.height!==t)&&(this.preferredSize.set(e,t),this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}copy(e){this.s=e.scale,this.baseSize.set(e.baseWidth,e.baseHeight),this.preferredSize.set(e.preferredWidth,e.preferredHeight),this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height)}static get AUTO_SIZE(){return V}},ai=class{constructor(e=0){this.nextId=e}getNextId(){return this.nextId++}reset(e=0){return this.nextId=e,this}},Ue=new ai(2),ke=class extends Set{constructor(e,t=Ue.getNextId()){super(),this.exclusive=!1,this._layer=t,(this._layer<1||this._layer>31)&&(console.warn("Layer out of range, resetting to 2"),Ue.reset(2),this._layer=Ue.getNextId()),e!==void 0&&this.set(e)}get layer(){return this._layer}set layer(e){const t=this._layer;for(const r of this)r.layers.disable(t),r.layers.enable(e);this._layer=e}getLayer(){return this.layer}setLayer(e){this.layer=e}isExclusive(){return this.exclusive}setExclusive(e){this.exclusive=e}clear(){const e=this.layer;for(const t of this)t.layers.disable(e);return super.clear()}set(e){this.clear();for(const t of e)this.add(t);return this}indexOf(e){return this.has(e)?0:-1}add(e){return this.exclusive?e.layers.set(this.layer):e.layers.enable(this.layer),super.add(e)}delete(e){return this.has(e)&&e.layers.disable(this.layer),super.delete(e)}toggle(e){let t;return this.has(e)?(this.delete(e),t=!1):(this.add(e),t=!0),t}setVisible(e){for(const t of this)e?t.layers.enable(0):t.layers.disable(0);return this}},p={SKIP:9,SET:30,ADD:0,ALPHA:1,AVERAGE:2,COLOR:3,COLOR_BURN:4,COLOR_DODGE:5,DARKEN:6,DIFFERENCE:7,DIVIDE:8,DST:9,EXCLUSION:10,HARD_LIGHT:11,HARD_MIX:12,HUE:13,INVERT:14,INVERT_RGB:15,LIGHTEN:16,LINEAR_BURN:17,LINEAR_DODGE:18,LINEAR_LIGHT:19,LUMINOSITY:20,MULTIPLY:21,NEGATION:22,NORMAL:23,OVERLAY:24,PIN_LIGHT:25,REFLECT:26,SATURATION:27,SCREEN:28,SOFT_LIGHT:29,SRC:30,SUBTRACT:31,VIVID_LIGHT:32},si="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,x+y,opacity);}",ni="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,min(y.a,opacity));}",oi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,(x+y)*0.5,opacity);}",li="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.rg,xHSL.b));return vec4(mix(x.rgb,z,opacity),y.a);}",ui="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec4 z=mix(step(0.0,y)*(1.0-min(vec4(1.0),(1.0-x)/y)),vec4(1.0),step(1.0,x));return mix(x,z,opacity);}",ci="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec4 z=step(0.0,x)*mix(min(vec4(1.0),x/max(1.0-y,1e-9)),vec4(1.0),step(1.0,y));return mix(x,z,opacity);}",fi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,min(x,y),opacity);}",hi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,abs(x-y),opacity);}",di="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,x/max(y,1e-12),opacity);}",vi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,(x+y-2.0*x*y),opacity);}",pi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec4 a=min(x,1.0),b=min(y,1.0);vec4 z=mix(2.0*a*b,1.0-2.0*(1.0-a)*(1.0-b),step(0.5,y));return mix(x,z,opacity);}",mi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,step(1.0,x+y),opacity);}",gi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.r,xHSL.gb));return vec4(mix(x.rgb,z,opacity),y.a);}",Ai="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,1.0-y,opacity);}",xi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y*(1.0-x),opacity);}",Di="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,max(x,y),opacity);}",Ti="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,clamp(y+x-1.0,0.0,1.0),opacity);}",wi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,min(x+y,1.0),opacity);}",Si="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,clamp(2.0*y+x-1.0,0.0,1.0),opacity);}",Ci="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.rg,yHSL.b));return vec4(mix(x.rgb,z,opacity),y.a);}",Ei="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,x*y,opacity);}",yi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,1.0-abs(1.0-x-y),opacity);}",Bi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,opacity);}",Mi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec4 z=mix(2.0*y*x,1.0-2.0*(1.0-y)*(1.0-x),step(0.5,x));return mix(x,z,opacity);}",Ui="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec4 y2=2.0*y;vec4 z=mix(mix(y2,x,step(0.5*x,y)),max(vec4(0.0),y2-1.0),step(x,(y2-1.0)));return mix(x,z,opacity);}",Pi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec4 z=mix(min(x*x/max(1.0-y,1e-12),1.0),y,step(1.0,y));return mix(x,z,opacity);}",Ii="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.r,yHSL.g,xHSL.b));return vec4(mix(x.rgb,z,opacity),y.a);}",Ri="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,x+y-min(x*y,1.0),opacity);}",bi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec4 y2=2.0*y;vec4 w=step(0.5,y);vec4 z=mix(x-(1.0-y2)*x*(1.0-x),mix(x+(y2-1.0)*(sqrt(x)-x),x+(y2-1.0)*x*((16.0*x-12.0)*x+3.0),w*(1.0-step(0.25,x))),w);return mix(x,z,opacity);}",Fi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return y;}",Li="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,max(x+y-1.0,0.0),opacity);}",Oi="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec4 z=mix(max(1.0-min((1.0-x)/(2.0*y),1.0),0.0),min(x/(2.0*(1.0-y)),1.0),step(0.5,y));return mix(x,z,opacity);}",Ni=new Map([[p.ADD,si],[p.ALPHA,ni],[p.AVERAGE,oi],[p.COLOR,li],[p.COLOR_BURN,ui],[p.COLOR_DODGE,ci],[p.DARKEN,fi],[p.DIFFERENCE,hi],[p.DIVIDE,di],[p.DST,null],[p.EXCLUSION,vi],[p.HARD_LIGHT,pi],[p.HARD_MIX,mi],[p.HUE,gi],[p.INVERT,Ai],[p.INVERT_RGB,xi],[p.LIGHTEN,Di],[p.LINEAR_BURN,Ti],[p.LINEAR_DODGE,wi],[p.LINEAR_LIGHT,Si],[p.LUMINOSITY,Ci],[p.MULTIPLY,Ei],[p.NEGATION,yi],[p.NORMAL,Bi],[p.OVERLAY,Mi],[p.PIN_LIGHT,Ui],[p.REFLECT,Pi],[p.SATURATION,Ii],[p.SCREEN,Ri],[p.SOFT_LIGHT,bi],[p.SRC,Fi],[p.SUBTRACT,Li],[p.VIVID_LIGHT,Oi]]),dt=class extends i.EventDispatcher{constructor(e,t=1){super(),this._blendFunction=e,this.opacity=new i.Uniform$1(t)}getOpacity(){return this.opacity.value}setOpacity(e){this.opacity.value=e}get blendFunction(){return this._blendFunction}set blendFunction(e){this._blendFunction=e,this.dispatchEvent({type:"change"})}getBlendFunction(){return this.blendFunction}setBlendFunction(e){this.blendFunction=e}getShaderCode(){return Ni.get(this.blendFunction)}},vt=class extends i.CanvasTexture{constructor({characters:e=" .:,'-^=*+?!|0#X%WM@",font:t="Arial",fontSize:r=54,size:a=1024,cellCount:s=16}={}){super(document.createElement("canvas"),void 0,i.RepeatWrapping,i.RepeatWrapping);const o=this.image;o.width=o.height=a;const n=o.getContext("2d"),l=a/s;n.font=`${r}px ${t}`,n.textAlign="center",n.textBaseline="middle",n.fillStyle="#ffffff";for(let u=0,c=e.length;u<c;++u){const f=e[u],h=u%s,d=Math.floor(u/s);n.fillText(f,h*l+l/2,d*l+l/2)}this.characterCount=e.length,this.cellCount=s}},C=class extends i.EventDispatcher{constructor(e,t,{attributes:r=I.NONE,blendFunction:a=p.NORMAL,defines:s=new Map,uniforms:o=new Map,extensions:n=null,vertexShader:l=null}={}){super(),this.name=e,this.renderer=null,this.attributes=r,this.fragmentShader=t,this.vertexShader=l,this.defines=s,this.uniforms=o,this.extensions=n,this.blendMode=new dt(a),this.blendMode.addEventListener("change",u=>this.setChanged()),this._inputColorSpace=i.LinearSRGBColorSpace,this._outputColorSpace=i.NoColorSpace}get inputColorSpace(){return this._inputColorSpace}set inputColorSpace(e){this._inputColorSpace=e,this.setChanged()}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e,this.setChanged()}set mainScene(e){}set mainCamera(e){}getName(){return this.name}setRenderer(e){this.renderer=e}getDefines(){return this.defines}getUniforms(){return this.uniforms}getExtensions(){return this.extensions}getBlendMode(){return this.blendMode}getAttributes(){return this.attributes}setAttributes(e){this.attributes=e,this.setChanged()}getFragmentShader(){return this.fragmentShader}setFragmentShader(e){this.fragmentShader=e,this.setChanged()}getVertexShader(){return this.vertexShader}setVertexShader(e){this.vertexShader=e,this.setChanged()}setChanged(){this.dispatchEvent({type:"change"})}setDepthTexture(e,t=i.BasicDepthPacking){}update(e,t,r){}setSize(e,t){}initialize(e,t,r){}dispose(){for(const e of Object.keys(this)){const t=this[e];(t instanceof i.WebGLRenderTarget||t instanceof i.Material||t instanceof i.Texture||t instanceof M)&&this[e].dispose()}}},Hi=`uniform sampler2D asciiTexture;uniform vec4 cellCount;
|
|
17
|
-
#ifdef USE_COLOR
|
|
18
|
-
uniform vec3 color;
|
|
19
|
-
#endif
|
|
20
|
-
void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec2 pixelizedUv=cellCount.zw*(0.5+floor(uv*cellCount.xy));vec4 texel=texture(inputBuffer,pixelizedUv);float lum=min(luminance(texel.rgb),1.0);
|
|
21
|
-
#ifdef INVERTED
|
|
22
|
-
lum=1.0-lum;
|
|
23
|
-
#endif
|
|
24
|
-
float characterIndex=floor(CHAR_COUNT_MINUS_ONE*lum);vec2 characterPosition=vec2(mod(characterIndex,TEX_CELL_COUNT),floor(characterIndex*INV_TEX_CELL_COUNT));vec2 offset=vec2(characterPosition.x,-characterPosition.y)*INV_TEX_CELL_COUNT;vec2 characterUv=mod(uv*(cellCount.xy*INV_TEX_CELL_COUNT),INV_TEX_CELL_COUNT);characterUv=characterUv-vec2(0.0,INV_TEX_CELL_COUNT)+offset;float asciiCharacter=texture(asciiTexture,characterUv).r;
|
|
25
|
-
#ifdef USE_COLOR
|
|
26
|
-
outputColor=vec4(color*asciiCharacter,inputColor.a);
|
|
27
|
-
#else
|
|
28
|
-
outputColor=vec4(texel.rgb*asciiCharacter,inputColor.a);
|
|
29
|
-
#endif
|
|
30
|
-
}`,Gi=class extends C{constructor({asciiTexture:e=new vt,cellSize:t=16,color:r=null,inverted:a=!1}={}){super("ASCIIEffect",Hi,{uniforms:new Map([["asciiTexture",new i.Uniform$1(null)],["cellCount",new i.Uniform$1(new i.Vector4)],["color",new i.Uniform$1(new i.Color)]])}),this._cellSize=-1,this.resolution=new i.Vector2,this.asciiTexture=e,this.cellSize=t,this.color=r,this.inverted=a}get asciiTexture(){return this.uniforms.get("asciiTexture").value}set asciiTexture(e){const t=this.uniforms.get("asciiTexture").value;if(this.uniforms.get("asciiTexture").value=e,t!==null&&t!==e&&t.dispose(),e!==null){const r=e.cellCount;this.defines.set("CHAR_COUNT_MINUS_ONE",(e.characterCount-1).toFixed(1)),this.defines.set("TEX_CELL_COUNT",r.toFixed(1)),this.defines.set("INV_TEX_CELL_COUNT",(1/r).toFixed(9)),this.setChanged()}}get color(){return this.uniforms.get("color").value}set color(e){e!==null&&this.uniforms.get("color").value.set(e),this.defines.has("USE_COLOR")&&e===null?(this.defines.delete("USE_COLOR"),this.setChanged()):!this.defines.has("USE_COLOR")&&e!==null&&(this.defines.set("USE_COLOR","1"),this.setChanged())}get inverted(){return this.defines.has("INVERTED")}set inverted(e){this.inverted!==e&&(e?this.defines.set("INVERTED","1"):this.defines.delete("INVERTED"),this.setChanged())}get cellSize(){return this._cellSize}set cellSize(e){this._cellSize!==e&&(this._cellSize=e,this.updateCellCount())}updateCellCount(){const e=this.uniforms.get("cellCount").value,t=this.resolution;e.x=t.width/this.cellSize,e.y=t.height/this.cellSize,e.z=1/e.x,e.w=1/e.y}setSize(e,t){this.resolution.set(e,t),this.updateCellCount()}dispose(){this.asciiTexture!==null&&this.asciiTexture.dispose(),super.dispose()}},G={VERY_SMALL:0,SMALL:1,MEDIUM:2,LARGE:3,VERY_LARGE:4,HUGE:5},zi=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
31
|
-
uniform mediump sampler2D inputBuffer;
|
|
32
|
-
#else
|
|
33
|
-
uniform lowp sampler2D inputBuffer;
|
|
34
|
-
#endif
|
|
35
|
-
varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec4 sum=texture2D(inputBuffer,vUv0);sum+=texture2D(inputBuffer,vUv1);sum+=texture2D(inputBuffer,vUv2);sum+=texture2D(inputBuffer,vUv3);gl_FragColor=sum*0.25;
|
|
36
|
-
#include <colorspace_fragment>
|
|
37
|
-
}`,ki="uniform vec4 texelSize;uniform float kernel;uniform float scale;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec2 uv=position.xy*0.5+0.5;vec2 dUv=(texelSize.xy*vec2(kernel)+texelSize.zw)*scale;vUv0=vec2(uv.x-dUv.x,uv.y+dUv.y);vUv1=vec2(uv.x+dUv.x,uv.y+dUv.y);vUv2=vec2(uv.x+dUv.x,uv.y-dUv.y);vUv3=vec2(uv.x-dUv.x,uv.y-dUv.y);gl_Position=vec4(position.xy,1.0,1.0);}",Qi=[new Float32Array([0,0]),new Float32Array([0,1,1]),new Float32Array([0,1,1,2]),new Float32Array([0,1,2,2,3]),new Float32Array([0,1,2,3,4,4,5]),new Float32Array([0,1,2,3,4,5,7,8,9,10])],Ce=class extends i.ShaderMaterial{constructor(e=new i.Vector4){super({name:"KawaseBlurMaterial",uniforms:{inputBuffer:new i.Uniform$1(null),texelSize:new i.Uniform$1(new i.Vector4),scale:new i.Uniform$1(1),kernel:new i.Uniform$1(0)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:zi,vertexShader:ki}),this.setTexelSize(e.x,e.y),this.kernelSize=G.MEDIUM}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.inputBuffer=e}get kernelSequence(){return Qi[this.kernelSize]}get scale(){return this.uniforms.scale.value}set scale(e){this.uniforms.scale.value=e}getScale(){return this.uniforms.scale.value}setScale(e){this.uniforms.scale.value=e}getKernel(){return null}get kernel(){return this.uniforms.kernel.value}set kernel(e){this.uniforms.kernel.value=e}setKernel(e){this.kernel=e}setTexelSize(e,t){this.uniforms.texelSize.value.set(e,t,e*.5,t*.5)}setSize(e,t){const r=1/e,a=1/t;this.uniforms.texelSize.value.set(r,a,r*.5,a*.5)}},q=class extends M{constructor({kernelSize:e=G.MEDIUM,resolutionScale:t=.5,width:r=A.AUTO_SIZE,height:a=A.AUTO_SIZE,resolutionX:s=r,resolutionY:o=a}={}){super("KawaseBlurPass"),this.renderTargetA=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTargetA.texture.name="Blur.Target.A",this.renderTargetB=this.renderTargetA.clone(),this.renderTargetB.texture.name="Blur.Target.B";const n=this.resolution=new A(this,s,o,t);n.addEventListener("change",l=>this.setSize(n.baseWidth,n.baseHeight)),this._blurMaterial=new Ce,this._blurMaterial.kernelSize=e,this.copyMaterial=new ve}getResolution(){return this.resolution}get blurMaterial(){return this._blurMaterial}set blurMaterial(e){this._blurMaterial=e}get dithering(){return this.copyMaterial.dithering}set dithering(e){this.copyMaterial.dithering=e}get kernelSize(){return this.blurMaterial.kernelSize}set kernelSize(e){this.blurMaterial.kernelSize=e}get width(){return this.resolution.width}set width(e){this.resolution.preferredWidth=e}get height(){return this.resolution.height}set height(e){this.resolution.preferredHeight=e}get scale(){return this.blurMaterial.scale}set scale(e){this.blurMaterial.scale=e}getScale(){return this.blurMaterial.scale}setScale(e){this.blurMaterial.scale=e}getKernelSize(){return this.kernelSize}setKernelSize(e){this.kernelSize=e}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}render(e,t,r,a,s){const o=this.scene,n=this.camera,l=this.renderTargetA,u=this.renderTargetB,c=this.blurMaterial,f=c.kernelSequence;let h=t;this.fullscreenMaterial=c;for(let d=0,v=f.length;d<v;++d){const g=(d&1)===0?l:u;c.kernel=f[d],c.inputBuffer=h.texture,e.setRenderTarget(g),e.render(o,n),h=g}this.fullscreenMaterial=this.copyMaterial,this.copyMaterial.inputBuffer=h.texture,e.setRenderTarget(this.renderToScreen?null:r),e.render(o,n)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t);const a=r.width,s=r.height;this.renderTargetA.setSize(a,s),this.renderTargetB.setSize(a,s),this.blurMaterial.setSize(e,t)}initialize(e,t,r){r!==void 0&&(this.renderTargetA.texture.type=r,this.renderTargetB.texture.type=r,r!==i.UnsignedByteType?(this.blurMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1",this.copyMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1"):e!==null&&e.outputColorSpace===i.SRGBColorSpace&&(this.renderTargetA.texture.colorSpace=i.SRGBColorSpace,this.renderTargetB.texture.colorSpace=i.SRGBColorSpace))}static get AUTO_SIZE(){return A.AUTO_SIZE}},Vi=`#include <common>
|
|
38
|
-
#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
39
|
-
uniform mediump sampler2D inputBuffer;
|
|
40
|
-
#else
|
|
41
|
-
uniform lowp sampler2D inputBuffer;
|
|
42
|
-
#endif
|
|
43
|
-
#ifdef RANGE
|
|
44
|
-
uniform vec2 range;
|
|
45
|
-
#elif defined(THRESHOLD)
|
|
46
|
-
uniform float threshold;uniform float smoothing;
|
|
47
|
-
#endif
|
|
48
|
-
varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuffer,vUv);float l=luminance(texel.rgb);
|
|
49
|
-
#ifdef RANGE
|
|
50
|
-
float low=step(range.x,l);float high=step(l,range.y);l*=low*high;
|
|
51
|
-
#elif defined(THRESHOLD)
|
|
52
|
-
l=smoothstep(threshold,threshold+smoothing,l)*l;
|
|
53
|
-
#endif
|
|
54
|
-
#ifdef COLOR
|
|
55
|
-
gl_FragColor=vec4(texel.rgb*clamp(l,0.0,1.0),l);
|
|
56
|
-
#else
|
|
57
|
-
gl_FragColor=vec4(l);
|
|
58
|
-
#endif
|
|
59
|
-
}`,pt=class extends i.ShaderMaterial{constructor(e=!1,t=null){super({name:"LuminanceMaterial",defines:{THREE_REVISION:i.REVISION.replace(/\D+/g,"")},uniforms:{inputBuffer:new i.Uniform$1(null),threshold:new i.Uniform$1(0),smoothing:new i.Uniform$1(1),range:new i.Uniform$1(null)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Vi,vertexShader:K}),this.colorOutput=e,this.luminanceRange=t}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}get threshold(){return this.uniforms.threshold.value}set threshold(e){this.smoothing>0||e>0?this.defines.THRESHOLD="1":delete this.defines.THRESHOLD,this.uniforms.threshold.value=e}getThreshold(){return this.threshold}setThreshold(e){this.threshold=e}get smoothing(){return this.uniforms.smoothing.value}set smoothing(e){this.threshold>0||e>0?this.defines.THRESHOLD="1":delete this.defines.THRESHOLD,this.uniforms.smoothing.value=e}getSmoothingFactor(){return this.smoothing}setSmoothingFactor(e){this.smoothing=e}get useThreshold(){return this.threshold>0||this.smoothing>0}set useThreshold(e){}get colorOutput(){return this.defines.COLOR!==void 0}set colorOutput(e){e?this.defines.COLOR="1":delete this.defines.COLOR,this.needsUpdate=!0}isColorOutputEnabled(e){return this.colorOutput}setColorOutputEnabled(e){this.colorOutput=e}get useRange(){return this.luminanceRange!==null}set useRange(e){this.luminanceRange=null}get luminanceRange(){return this.uniforms.range.value}set luminanceRange(e){e!==null?this.defines.RANGE="1":delete this.defines.RANGE,this.uniforms.range.value=e,this.needsUpdate=!0}getLuminanceRange(){return this.luminanceRange}setLuminanceRange(e){this.luminanceRange=e}},Qe=class extends M{constructor({renderTarget:e,luminanceRange:t,colorOutput:r,resolutionScale:a=1,width:s=A.AUTO_SIZE,height:o=A.AUTO_SIZE,resolutionX:n=s,resolutionY:l=o}={}){super("LuminancePass"),this.fullscreenMaterial=new pt(r,t),this.needsSwap=!1,this.renderTarget=e,this.renderTarget===void 0&&(this.renderTarget=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTarget.texture.name="LuminancePass.Target");const u=this.resolution=new A(this,n,l,a);u.addEventListener("change",c=>this.setSize(u.baseWidth,u.baseHeight))}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}getResolution(){return this.resolution}render(e,t,r,a,s){const o=this.fullscreenMaterial;o.inputBuffer=t.texture,e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t),this.renderTarget.setSize(r.width,r.height)}initialize(e,t,r){r!==void 0&&r!==i.UnsignedByteType&&(this.renderTarget.texture.type=r,this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1")}},Wi=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
60
|
-
uniform mediump sampler2D inputBuffer;
|
|
61
|
-
#else
|
|
62
|
-
uniform lowp sampler2D inputBuffer;
|
|
63
|
-
#endif
|
|
64
|
-
#define WEIGHT_INNER 0.125
|
|
65
|
-
#define WEIGHT_OUTER 0.0555555
|
|
66
|
-
varying vec2 vUv;varying vec2 vUv00;varying vec2 vUv01;varying vec2 vUv02;varying vec2 vUv03;varying vec2 vUv04;varying vec2 vUv05;varying vec2 vUv06;varying vec2 vUv07;varying vec2 vUv08;varying vec2 vUv09;varying vec2 vUv10;varying vec2 vUv11;float clampToBorder(const in vec2 uv){return float(uv.s>=0.0&&uv.s<=1.0&&uv.t>=0.0&&uv.t<=1.0);}void main(){vec4 c=vec4(0.0);vec4 w=WEIGHT_INNER*vec4(clampToBorder(vUv00),clampToBorder(vUv01),clampToBorder(vUv02),clampToBorder(vUv03));c+=w.x*texture2D(inputBuffer,vUv00);c+=w.y*texture2D(inputBuffer,vUv01);c+=w.z*texture2D(inputBuffer,vUv02);c+=w.w*texture2D(inputBuffer,vUv03);w=WEIGHT_OUTER*vec4(clampToBorder(vUv04),clampToBorder(vUv05),clampToBorder(vUv06),clampToBorder(vUv07));c+=w.x*texture2D(inputBuffer,vUv04);c+=w.y*texture2D(inputBuffer,vUv05);c+=w.z*texture2D(inputBuffer,vUv06);c+=w.w*texture2D(inputBuffer,vUv07);w=WEIGHT_OUTER*vec4(clampToBorder(vUv08),clampToBorder(vUv09),clampToBorder(vUv10),clampToBorder(vUv11));c+=w.x*texture2D(inputBuffer,vUv08);c+=w.y*texture2D(inputBuffer,vUv09);c+=w.z*texture2D(inputBuffer,vUv10);c+=w.w*texture2D(inputBuffer,vUv11);c+=WEIGHT_OUTER*texture2D(inputBuffer,vUv);gl_FragColor=c;
|
|
67
|
-
#include <colorspace_fragment>
|
|
68
|
-
}`,Yi="uniform vec2 texelSize;varying vec2 vUv;varying vec2 vUv00;varying vec2 vUv01;varying vec2 vUv02;varying vec2 vUv03;varying vec2 vUv04;varying vec2 vUv05;varying vec2 vUv06;varying vec2 vUv07;varying vec2 vUv08;varying vec2 vUv09;varying vec2 vUv10;varying vec2 vUv11;void main(){vUv=position.xy*0.5+0.5;vUv00=vUv+texelSize*vec2(-1.0,1.0);vUv01=vUv+texelSize*vec2(1.0,1.0);vUv02=vUv+texelSize*vec2(-1.0,-1.0);vUv03=vUv+texelSize*vec2(1.0,-1.0);vUv04=vUv+texelSize*vec2(-2.0,2.0);vUv05=vUv+texelSize*vec2(0.0,2.0);vUv06=vUv+texelSize*vec2(2.0,2.0);vUv07=vUv+texelSize*vec2(-2.0,0.0);vUv08=vUv+texelSize*vec2(2.0,0.0);vUv09=vUv+texelSize*vec2(-2.0,-2.0);vUv10=vUv+texelSize*vec2(0.0,-2.0);vUv11=vUv+texelSize*vec2(2.0,-2.0);gl_Position=vec4(position.xy,1.0,1.0);}",mt=class extends i.ShaderMaterial{constructor(){super({name:"DownsamplingMaterial",uniforms:{inputBuffer:new i.Uniform$1(null),texelSize:new i.Uniform$1(new i.Vector2)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Wi,vertexShader:Yi})}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},Ki=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
69
|
-
uniform mediump sampler2D inputBuffer;uniform mediump sampler2D supportBuffer;
|
|
70
|
-
#else
|
|
71
|
-
uniform lowp sampler2D inputBuffer;uniform lowp sampler2D supportBuffer;
|
|
72
|
-
#endif
|
|
73
|
-
uniform float radius;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;varying vec2 vUv4;varying vec2 vUv5;varying vec2 vUv6;varying vec2 vUv7;void main(){vec4 c=vec4(0.0);c+=texture2D(inputBuffer,vUv0)*0.0625;c+=texture2D(inputBuffer,vUv1)*0.125;c+=texture2D(inputBuffer,vUv2)*0.0625;c+=texture2D(inputBuffer,vUv3)*0.125;c+=texture2D(inputBuffer,vUv)*0.25;c+=texture2D(inputBuffer,vUv4)*0.125;c+=texture2D(inputBuffer,vUv5)*0.0625;c+=texture2D(inputBuffer,vUv6)*0.125;c+=texture2D(inputBuffer,vUv7)*0.0625;vec4 baseColor=texture2D(supportBuffer,vUv);gl_FragColor=mix(baseColor,c,radius);
|
|
74
|
-
#include <colorspace_fragment>
|
|
75
|
-
}`,Xi="uniform vec2 texelSize;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;varying vec2 vUv4;varying vec2 vUv5;varying vec2 vUv6;varying vec2 vUv7;void main(){vUv=position.xy*0.5+0.5;vUv0=vUv+texelSize*vec2(-1.0,1.0);vUv1=vUv+texelSize*vec2(0.0,1.0);vUv2=vUv+texelSize*vec2(1.0,1.0);vUv3=vUv+texelSize*vec2(-1.0,0.0);vUv4=vUv+texelSize*vec2(1.0,0.0);vUv5=vUv+texelSize*vec2(-1.0,-1.0);vUv6=vUv+texelSize*vec2(0.0,-1.0);vUv7=vUv+texelSize*vec2(1.0,-1.0);gl_Position=vec4(position.xy,1.0,1.0);}",gt=class extends i.ShaderMaterial{constructor(){super({name:"UpsamplingMaterial",uniforms:{inputBuffer:new i.Uniform$1(null),supportBuffer:new i.Uniform$1(null),texelSize:new i.Uniform$1(new i.Vector2),radius:new i.Uniform$1(.85)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Ki,vertexShader:Xi})}set inputBuffer(e){this.uniforms.inputBuffer.value=e}set supportBuffer(e){this.uniforms.supportBuffer.value=e}get radius(){return this.uniforms.radius.value}set radius(e){this.uniforms.radius.value=e}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},At=class extends M{constructor(){super("MipmapBlurPass"),this.needsSwap=!1,this.renderTarget=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTarget.texture.name="Upsampling.Mipmap0",this.downsamplingMipmaps=[],this.upsamplingMipmaps=[],this.downsamplingMaterial=new mt,this.upsamplingMaterial=new gt,this.resolution=new i.Vector2}get texture(){return this.renderTarget.texture}get levels(){return this.downsamplingMipmaps.length}set levels(e){if(this.levels!==e){const t=this.renderTarget;this.dispose(),this.downsamplingMipmaps=[],this.upsamplingMipmaps=[];for(let r=0;r<e;++r){const a=t.clone();a.texture.name="Downsampling.Mipmap"+r,this.downsamplingMipmaps.push(a)}this.upsamplingMipmaps.push(t);for(let r=1,a=e-1;r<a;++r){const s=t.clone();s.texture.name="Upsampling.Mipmap"+r,this.upsamplingMipmaps.push(s)}this.setSize(this.resolution.x,this.resolution.y)}}get radius(){return this.upsamplingMaterial.radius}set radius(e){this.upsamplingMaterial.radius=e}render(e,t,r,a,s){const{scene:o,camera:n}=this,{downsamplingMaterial:l,upsamplingMaterial:u}=this,{downsamplingMipmaps:c,upsamplingMipmaps:f}=this;let h=t;this.fullscreenMaterial=l;for(let d=0,v=c.length;d<v;++d){const g=c[d];l.setSize(h.width,h.height),l.inputBuffer=h.texture,e.setRenderTarget(g),e.render(o,n),h=g}this.fullscreenMaterial=u;for(let d=f.length-1;d>=0;--d){const v=f[d];u.setSize(h.width,h.height),u.inputBuffer=h.texture,u.supportBuffer=c[d].texture,e.setRenderTarget(v),e.render(o,n),h=v}}setSize(e,t){const r=this.resolution;r.set(e,t);let a=r.width,s=r.height;for(let o=0,n=this.downsamplingMipmaps.length;o<n;++o)a=Math.round(a*.5),s=Math.round(s*.5),this.downsamplingMipmaps[o].setSize(a,s),o<this.upsamplingMipmaps.length&&this.upsamplingMipmaps[o].setSize(a,s)}initialize(e,t,r){if(r!==void 0){const a=this.downsamplingMipmaps.concat(this.upsamplingMipmaps);for(const s of a)s.texture.type=r;if(r!==i.UnsignedByteType)this.downsamplingMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1",this.upsamplingMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1";else if(e!==null&&e.outputColorSpace===i.SRGBColorSpace)for(const s of a)s.texture.colorSpace=i.SRGBColorSpace}}dispose(){super.dispose();for(const e of this.downsamplingMipmaps.concat(this.upsamplingMipmaps))e.dispose()}},Zi=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
76
|
-
uniform mediump sampler2D map;
|
|
77
|
-
#else
|
|
78
|
-
uniform lowp sampler2D map;
|
|
79
|
-
#endif
|
|
80
|
-
uniform float intensity;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec4 texel=texture2D(map,uv);outputColor=vec4(texel.rgb*intensity,texel.a);}`,xt=class extends C{constructor({blendFunction:e=p.SCREEN,luminanceThreshold:t=.9,luminanceSmoothing:r=.025,mipmapBlur:a=!1,intensity:s=1,radius:o=.85,levels:n=8,kernelSize:l=G.LARGE,resolutionScale:u=.5,width:c=A.AUTO_SIZE,height:f=A.AUTO_SIZE,resolutionX:h=c,resolutionY:d=f}={}){super("BloomEffect",Zi,{blendFunction:e,uniforms:new Map([["map",new i.Uniform$1(null)],["intensity",new i.Uniform$1(s)]])}),this.renderTarget=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTarget.texture.name="Bloom.Target",this.blurPass=new q({kernelSize:l}),this.luminancePass=new Qe({colorOutput:!0}),this.luminanceMaterial.threshold=t,this.luminanceMaterial.smoothing=r,this.mipmapBlurPass=new At,this.mipmapBlurPass.enabled=a,this.mipmapBlurPass.radius=o,this.mipmapBlurPass.levels=n,this.uniforms.get("map").value=a?this.mipmapBlurPass.texture:this.renderTarget.texture;const v=this.resolution=new A(this,h,d,u);v.addEventListener("change",g=>this.setSize(v.baseWidth,v.baseHeight))}get texture(){return this.mipmapBlurPass.enabled?this.mipmapBlurPass.texture:this.renderTarget.texture}getTexture(){return this.texture}getResolution(){return this.resolution}getBlurPass(){return this.blurPass}getLuminancePass(){return this.luminancePass}get luminanceMaterial(){return this.luminancePass.fullscreenMaterial}getLuminanceMaterial(){return this.luminancePass.fullscreenMaterial}get width(){return this.resolution.width}set width(e){this.resolution.preferredWidth=e}get height(){return this.resolution.height}set height(e){this.resolution.preferredHeight=e}get dithering(){return this.blurPass.dithering}set dithering(e){this.blurPass.dithering=e}get kernelSize(){return this.blurPass.kernelSize}set kernelSize(e){this.blurPass.kernelSize=e}get distinction(){return console.warn(this.name,"distinction was removed"),1}set distinction(e){console.warn(this.name,"distinction was removed")}get intensity(){return this.uniforms.get("intensity").value}set intensity(e){this.uniforms.get("intensity").value=e}getIntensity(){return this.intensity}setIntensity(e){this.intensity=e}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}update(e,t,r){const a=this.renderTarget,s=this.luminancePass;s.enabled?(s.render(e,t),this.mipmapBlurPass.enabled?this.mipmapBlurPass.render(e,s.renderTarget):this.blurPass.render(e,s.renderTarget,a)):this.mipmapBlurPass.enabled?this.mipmapBlurPass.render(e,t):this.blurPass.render(e,t,a)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t),this.renderTarget.setSize(r.width,r.height),this.blurPass.resolution.copy(r),this.luminancePass.setSize(e,t),this.mipmapBlurPass.setSize(e,t)}initialize(e,t,r){this.blurPass.initialize(e,t,r),this.luminancePass.initialize(e,t,r),this.mipmapBlurPass.initialize(e,t,r),r!==void 0&&(this.renderTarget.texture.type=r,e!==null&&e.outputColorSpace===i.SRGBColorSpace&&(this.renderTarget.texture.colorSpace=i.SRGBColorSpace))}},ji=`uniform float focus;uniform float dof;uniform float aperture;uniform float maxBlur;void mainImage(const in vec4 inputColor,const in vec2 uv,const in float depth,out vec4 outputColor){vec2 aspectCorrection=vec2(1.0,aspect);
|
|
81
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
82
|
-
float viewZ=perspectiveDepthToViewZ(depth,cameraNear,cameraFar);float linearDepth=viewZToOrthographicDepth(viewZ,cameraNear,cameraFar);
|
|
83
|
-
#else
|
|
84
|
-
float linearDepth=depth;
|
|
85
|
-
#endif
|
|
86
|
-
float focusNear=clamp(focus-dof,0.0,1.0);float focusFar=clamp(focus+dof,0.0,1.0);float low=step(linearDepth,focusNear);float high=step(focusFar,linearDepth);float factor=(linearDepth-focusNear)*low+(linearDepth-focusFar)*high;vec2 dofBlur=vec2(clamp(factor*aperture,-maxBlur,maxBlur));vec2 dofblur9=dofBlur*0.9;vec2 dofblur7=dofBlur*0.7;vec2 dofblur4=dofBlur*0.4;vec4 color=inputColor;color+=texture2D(inputBuffer,uv+(vec2(0.0,0.4)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(0.15,0.37)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(0.29,0.29)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(-0.37,0.15)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(0.40,0.0)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(0.37,-0.15)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(0.29,-0.29)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(-0.15,-0.37)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(0.0,-0.4)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(-0.15,0.37)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(-0.29,0.29)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(0.37,0.15)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(-0.4,0.0)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(-0.37,-0.15)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(-0.29,-0.29)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(0.15,-0.37)*aspectCorrection)*dofBlur);color+=texture2D(inputBuffer,uv+(vec2(0.15,0.37)*aspectCorrection)*dofblur9);color+=texture2D(inputBuffer,uv+(vec2(-0.37,0.15)*aspectCorrection)*dofblur9);color+=texture2D(inputBuffer,uv+(vec2(0.37,-0.15)*aspectCorrection)*dofblur9);color+=texture2D(inputBuffer,uv+(vec2(-0.15,-0.37)*aspectCorrection)*dofblur9);color+=texture2D(inputBuffer,uv+(vec2(-0.15,0.37)*aspectCorrection)*dofblur9);color+=texture2D(inputBuffer,uv+(vec2(0.37,0.15)*aspectCorrection)*dofblur9);color+=texture2D(inputBuffer,uv+(vec2(-0.37,-0.15)*aspectCorrection)*dofblur9);color+=texture2D(inputBuffer,uv+(vec2(0.15,-0.37)*aspectCorrection)*dofblur9);color+=texture2D(inputBuffer,uv+(vec2(0.29,0.29)*aspectCorrection)*dofblur7);color+=texture2D(inputBuffer,uv+(vec2(0.40,0.0)*aspectCorrection)*dofblur7);color+=texture2D(inputBuffer,uv+(vec2(0.29,-0.29)*aspectCorrection)*dofblur7);color+=texture2D(inputBuffer,uv+(vec2(0.0,-0.4)*aspectCorrection)*dofblur7);color+=texture2D(inputBuffer,uv+(vec2(-0.29,0.29)*aspectCorrection)*dofblur7);color+=texture2D(inputBuffer,uv+(vec2(-0.4,0.0)*aspectCorrection)*dofblur7);color+=texture2D(inputBuffer,uv+(vec2(-0.29,-0.29)*aspectCorrection)*dofblur7);color+=texture2D(inputBuffer,uv+(vec2(0.0,0.4)*aspectCorrection)*dofblur7);color+=texture2D(inputBuffer,uv+(vec2(0.29,0.29)*aspectCorrection)*dofblur4);color+=texture2D(inputBuffer,uv+(vec2(0.4,0.0)*aspectCorrection)*dofblur4);color+=texture2D(inputBuffer,uv+(vec2(0.29,-0.29)*aspectCorrection)*dofblur4);color+=texture2D(inputBuffer,uv+(vec2(0.0,-0.4)*aspectCorrection)*dofblur4);color+=texture2D(inputBuffer,uv+(vec2(-0.29,0.29)*aspectCorrection)*dofblur4);color+=texture2D(inputBuffer,uv+(vec2(-0.4,0.0)*aspectCorrection)*dofblur4);color+=texture2D(inputBuffer,uv+(vec2(-0.29,-0.29)*aspectCorrection)*dofblur4);color+=texture2D(inputBuffer,uv+(vec2(0.0,0.4)*aspectCorrection)*dofblur4);outputColor=color/41.0;}`,Ji=class extends C{constructor({blendFunction:e,focus:t=.5,dof:r=.02,aperture:a=.015,maxBlur:s=1}={}){super("BokehEffect",ji,{blendFunction:e,attributes:I.CONVOLUTION|I.DEPTH,uniforms:new Map([["focus",new i.Uniform$1(t)],["dof",new i.Uniform$1(r)],["aperture",new i.Uniform$1(a)],["maxBlur",new i.Uniform$1(s)]])})}},qi="uniform float brightness;uniform float contrast;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec3 color=inputColor.rgb+vec3(brightness-0.5);if(contrast>0.0){color/=vec3(1.0-contrast);}else{color*=vec3(1.0+contrast);}outputColor=vec4(color+vec3(0.5),inputColor.a);}",_i=class extends C{constructor({blendFunction:e=p.SRC,brightness:t=0,contrast:r=0}={}){super("BrightnessContrastEffect",qi,{blendFunction:e,uniforms:new Map([["brightness",new i.Uniform$1(t)],["contrast",new i.Uniform$1(r)]])}),this.inputColorSpace=i.SRGBColorSpace}get brightness(){return this.uniforms.get("brightness").value}set brightness(e){this.uniforms.get("brightness").value=e}getBrightness(){return this.brightness}setBrightness(e){this.brightness=e}get contrast(){return this.uniforms.get("contrast").value}set contrast(e){this.uniforms.get("contrast").value=e}getContrast(){return this.contrast}setContrast(e){this.contrast=e}},$i="void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){outputColor=vec4(vec3(average(inputColor.rgb)),inputColor.a);}",er=class extends C{constructor(e){super("ColorAverageEffect",$i,{blendFunction:e})}},tr="uniform float factor;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){outputColor=vec4(floor(inputColor.rgb*factor+0.5)/factor,inputColor.a);}",ir=class extends C{constructor({blendFunction:e,bits:t=16}={}){super("ColorDepthEffect",tr,{blendFunction:e,uniforms:new Map([["factor",new i.Uniform$1(1)]])}),this.bits=0,this.bitDepth=t}get bitDepth(){return this.bits}set bitDepth(e){this.bits=e,this.uniforms.get("factor").value=Math.pow(2,e/3)}getBitDepth(){return this.bitDepth}setBitDepth(e){this.bitDepth=e}},rr=`#ifdef RADIAL_MODULATION
|
|
87
|
-
uniform float modulationOffset;
|
|
88
|
-
#endif
|
|
89
|
-
varying float vActive;varying vec2 vUvR;varying vec2 vUvB;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec2 ra=inputColor.ra;vec2 ba=inputColor.ba;
|
|
90
|
-
#ifdef RADIAL_MODULATION
|
|
91
|
-
const vec2 center=vec2(0.5);float d=distance(uv,center)*2.0;d=max(d-modulationOffset,0.0);if(vActive>0.0&&d>0.0){ra=texture2D(inputBuffer,mix(uv,vUvR,d)).ra;ba=texture2D(inputBuffer,mix(uv,vUvB,d)).ba;}
|
|
92
|
-
#else
|
|
93
|
-
if(vActive>0.0){ra=texture2D(inputBuffer,vUvR).ra;ba=texture2D(inputBuffer,vUvB).ba;}
|
|
94
|
-
#endif
|
|
95
|
-
outputColor=vec4(ra.x,inputColor.g,ba.x,max(max(ra.y,ba.y),inputColor.a));}`,ar="uniform vec2 offset;varying float vActive;varying vec2 vUvR;varying vec2 vUvB;void mainSupport(const in vec2 uv){vec2 shift=offset*vec2(1.0,aspect);vActive=(shift.x!=0.0||shift.y!=0.0)?1.0:0.0;vUvR=uv+shift;vUvB=uv-shift;}",sr=class extends C{constructor({offset:e=new i.Vector2(.001,5e-4),radialModulation:t=!1,modulationOffset:r=.15}={}){super("ChromaticAberrationEffect",rr,{vertexShader:ar,attributes:I.CONVOLUTION,uniforms:new Map([["offset",new i.Uniform$1(e)],["modulationOffset",new i.Uniform$1(r)]])}),this.radialModulation=t}get offset(){return this.uniforms.get("offset").value}set offset(e){this.uniforms.get("offset").value=e}get radialModulation(){return this.defines.has("RADIAL_MODULATION")}set radialModulation(e){e?this.defines.set("RADIAL_MODULATION","1"):this.defines.delete("RADIAL_MODULATION"),this.setChanged()}get modulationOffset(){return this.uniforms.get("modulationOffset").value}set modulationOffset(e){this.uniforms.get("modulationOffset").value=e}getOffset(){return this.offset}setOffset(e){this.offset=e}},nr=`void mainImage(const in vec4 inputColor,const in vec2 uv,const in float depth,out vec4 outputColor){
|
|
96
|
-
#ifdef INVERTED
|
|
97
|
-
vec3 color=vec3(1.0-depth);
|
|
98
|
-
#else
|
|
99
|
-
vec3 color=vec3(depth);
|
|
100
|
-
#endif
|
|
101
|
-
outputColor=vec4(color,inputColor.a);}`,or=class extends C{constructor({blendFunction:e=p.SRC,inverted:t=!1}={}){super("DepthEffect",nr,{blendFunction:e,attributes:I.DEPTH}),this.inverted=t}get inverted(){return this.defines.has("INVERTED")}set inverted(e){this.inverted!==e&&(e?this.defines.set("INVERTED","1"):this.defines.delete("INVERTED"),this.setChanged())}isInverted(){return this.inverted}setInverted(e){this.inverted=e}},Z={RED:0,GREEN:1,BLUE:2,ALPHA:3},Ve={DISCARD:0,MULTIPLY:1,MULTIPLY_RGB_SET_ALPHA:2,MULTIPLY_RGB:3},lr=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
102
|
-
uniform mediump sampler2D inputBuffer;
|
|
103
|
-
#else
|
|
104
|
-
uniform lowp sampler2D inputBuffer;
|
|
105
|
-
#endif
|
|
106
|
-
#if PASS == 1
|
|
107
|
-
uniform vec4 kernel64[32];
|
|
108
|
-
#else
|
|
109
|
-
uniform vec4 kernel16[8];
|
|
110
|
-
#endif
|
|
111
|
-
uniform lowp sampler2D cocBuffer;uniform vec2 texelSize;uniform float scale;varying vec2 vUv;void main(){
|
|
112
|
-
#ifdef FOREGROUND
|
|
113
|
-
vec2 cocNearFar=texture2D(cocBuffer,vUv).rg*scale;float coc=cocNearFar.x;
|
|
114
|
-
#else
|
|
115
|
-
float coc=texture2D(cocBuffer,vUv).g*scale;
|
|
116
|
-
#endif
|
|
117
|
-
if(coc==0.0){gl_FragColor=texture2D(inputBuffer,vUv);}else{
|
|
118
|
-
#ifdef FOREGROUND
|
|
119
|
-
vec2 step=texelSize*max(cocNearFar.x,cocNearFar.y);
|
|
120
|
-
#else
|
|
121
|
-
vec2 step=texelSize*coc;
|
|
122
|
-
#endif
|
|
123
|
-
#if PASS == 1
|
|
124
|
-
vec4 acc=vec4(0.0);for(int i=0;i<32;++i){vec4 kernel=kernel64[i];vec2 uv=step*kernel.xy+vUv;acc+=texture2D(inputBuffer,uv);uv=step*kernel.zw+vUv;acc+=texture2D(inputBuffer,uv);}gl_FragColor=acc/64.0;
|
|
125
|
-
#else
|
|
126
|
-
vec4 maxValue=texture2D(inputBuffer,vUv);for(int i=0;i<8;++i){vec4 kernel=kernel16[i];vec2 uv=step*kernel.xy+vUv;maxValue=max(texture2D(inputBuffer,uv),maxValue);uv=step*kernel.zw+vUv;maxValue=max(texture2D(inputBuffer,uv),maxValue);}gl_FragColor=maxValue;
|
|
127
|
-
#endif
|
|
128
|
-
}}`,he=class extends i.ShaderMaterial{constructor(e=!1,t=!1){super({name:"BokehMaterial",defines:{PASS:e?"2":"1"},uniforms:{inputBuffer:new i.Uniform$1(null),cocBuffer:new i.Uniform$1(null),texelSize:new i.Uniform$1(new i.Vector2),kernel64:new i.Uniform$1(null),kernel16:new i.Uniform$1(null),scale:new i.Uniform$1(1)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:lr,vertexShader:K}),t&&(this.defines.FOREGROUND="1"),this.generateKernel()}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}set cocBuffer(e){this.uniforms.cocBuffer.value=e}setCoCBuffer(e){this.uniforms.cocBuffer.value=e}get scale(){return this.uniforms.scale.value}set scale(e){this.uniforms.scale.value=e}getScale(e){return this.scale}setScale(e){this.scale=e}generateKernel(){const e=2.39996323,t=new Float64Array(128),r=new Float64Array(32);let a=0,s=0;for(let o=0,n=Math.sqrt(80);o<80;++o){const l=o*e,u=Math.sqrt(o)/n,c=u*Math.cos(l),f=u*Math.sin(l);o%5===0?(r[s++]=c,r[s++]=f):(t[a++]=c,t[a++]=f)}this.uniforms.kernel64.value=t,this.uniforms.kernel16.value=r}setTexelSize(e,t){this.uniforms.texelSize.value.set(e,t)}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}};function j(e,t,r){return e*(t-r)-t}function W(e,t,r){return Math.min(Math.max((e+t)/(t-r),0),1)}var ur=`#include <common>
|
|
129
|
-
#include <packing>
|
|
130
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
131
|
-
uniform highp sampler2D depthBuffer;
|
|
132
|
-
#else
|
|
133
|
-
uniform mediump sampler2D depthBuffer;
|
|
134
|
-
#endif
|
|
135
|
-
uniform float focusDistance;uniform float focusRange;uniform float cameraNear;uniform float cameraFar;varying vec2 vUv;float readDepth(const in vec2 uv){
|
|
136
|
-
#if DEPTH_PACKING == 3201
|
|
137
|
-
float depth=unpackRGBAToDepth(texture2D(depthBuffer,uv));
|
|
138
|
-
#else
|
|
139
|
-
float depth=texture2D(depthBuffer,uv).r;
|
|
140
|
-
#endif
|
|
141
|
-
#ifdef LOG_DEPTH
|
|
142
|
-
float d=pow(2.0,depth*log2(cameraFar+1.0))-1.0;float a=cameraFar/(cameraFar-cameraNear);float b=cameraFar*cameraNear/(cameraNear-cameraFar);depth=a+b/d;
|
|
143
|
-
#endif
|
|
144
|
-
return depth;}void main(){float depth=readDepth(vUv);
|
|
145
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
146
|
-
float viewZ=perspectiveDepthToViewZ(depth,cameraNear,cameraFar);float linearDepth=viewZToOrthographicDepth(viewZ,cameraNear,cameraFar);
|
|
147
|
-
#else
|
|
148
|
-
float linearDepth=depth;
|
|
149
|
-
#endif
|
|
150
|
-
float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,focusRange,abs(signedDistance));gl_FragColor.rg=magnitude*vec2(step(signedDistance,0.0),step(0.0,signedDistance));}`,Dt=class extends i.ShaderMaterial{constructor(e){super({name:"CircleOfConfusionMaterial",defines:{DEPTH_PACKING:"0"},uniforms:{depthBuffer:new i.Uniform$1(null),focusDistance:new i.Uniform$1(0),focusRange:new i.Uniform$1(0),cameraNear:new i.Uniform$1(.3),cameraFar:new i.Uniform$1(1e3)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:ur,vertexShader:K}),this.uniforms.focalLength=this.uniforms.focusRange,this.copyCameraSettings(e)}get near(){return this.uniforms.cameraNear.value}get far(){return this.uniforms.cameraFar.value}set depthBuffer(e){this.uniforms.depthBuffer.value=e}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=i.BasicDepthPacking){this.depthBuffer=e,this.depthPacking=t}get focusDistance(){return this.uniforms.focusDistance.value}set focusDistance(e){this.uniforms.focusDistance.value=e}get worldFocusDistance(){return-j(this.focusDistance,this.near,this.far)}set worldFocusDistance(e){this.focusDistance=W(-e,this.near,this.far)}getFocusDistance(e){this.uniforms.focusDistance.value=e}setFocusDistance(e){this.uniforms.focusDistance.value=e}get focalLength(){return this.focusRange}set focalLength(e){this.focusRange=e}get focusRange(){return this.uniforms.focusRange.value}set focusRange(e){this.uniforms.focusRange.value=e}get worldFocusRange(){return-j(this.focusRange,this.near,this.far)}set worldFocusRange(e){this.focusRange=W(-e,this.near,this.far)}getFocalLength(e){return this.focusRange}setFocalLength(e){this.focusRange=e}adoptCameraSettings(e){this.copyCameraSettings(e)}copyCameraSettings(e){e&&(this.uniforms.cameraNear.value=e.near,this.uniforms.cameraFar.value=e.far,e instanceof i.PerspectiveCamera?this.defines.PERSPECTIVE_CAMERA="1":delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}},cr=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
151
|
-
uniform mediump sampler2D inputBuffer;
|
|
152
|
-
#else
|
|
153
|
-
uniform lowp sampler2D inputBuffer;
|
|
154
|
-
#endif
|
|
155
|
-
#ifdef MASK_PRECISION_HIGH
|
|
156
|
-
uniform mediump sampler2D maskTexture;
|
|
157
|
-
#else
|
|
158
|
-
uniform lowp sampler2D maskTexture;
|
|
159
|
-
#endif
|
|
160
|
-
#if MASK_FUNCTION != 0
|
|
161
|
-
uniform float strength;
|
|
162
|
-
#endif
|
|
163
|
-
varying vec2 vUv;void main(){
|
|
164
|
-
#if COLOR_CHANNEL == 0
|
|
165
|
-
float mask=texture2D(maskTexture,vUv).r;
|
|
166
|
-
#elif COLOR_CHANNEL == 1
|
|
167
|
-
float mask=texture2D(maskTexture,vUv).g;
|
|
168
|
-
#elif COLOR_CHANNEL == 2
|
|
169
|
-
float mask=texture2D(maskTexture,vUv).b;
|
|
170
|
-
#else
|
|
171
|
-
float mask=texture2D(maskTexture,vUv).a;
|
|
172
|
-
#endif
|
|
173
|
-
#if MASK_FUNCTION == 0
|
|
174
|
-
#ifdef INVERTED
|
|
175
|
-
mask=step(mask,0.0);
|
|
176
|
-
#else
|
|
177
|
-
mask=1.0-step(mask,0.0);
|
|
178
|
-
#endif
|
|
179
|
-
#else
|
|
180
|
-
mask=clamp(mask*strength,0.0,1.0);
|
|
181
|
-
#ifdef INVERTED
|
|
182
|
-
mask=1.0-mask;
|
|
183
|
-
#endif
|
|
184
|
-
#endif
|
|
185
|
-
#if MASK_FUNCTION == 3
|
|
186
|
-
vec4 texel=texture2D(inputBuffer,vUv);gl_FragColor=vec4(mask*texel.rgb,texel.a);
|
|
187
|
-
#elif MASK_FUNCTION == 2
|
|
188
|
-
gl_FragColor=vec4(mask*texture2D(inputBuffer,vUv).rgb,mask);
|
|
189
|
-
#else
|
|
190
|
-
gl_FragColor=mask*texture2D(inputBuffer,vUv);
|
|
191
|
-
#endif
|
|
192
|
-
}`,Tt=class extends i.ShaderMaterial{constructor(e=null){super({name:"MaskMaterial",uniforms:{maskTexture:new i.Uniform$1(e),inputBuffer:new i.Uniform$1(null),strength:new i.Uniform$1(1)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:cr,vertexShader:K}),this.colorChannel=Z.RED,this.maskFunction=Ve.DISCARD}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}set maskTexture(e){this.uniforms.maskTexture.value=e,delete this.defines.MASK_PRECISION_HIGH,e.type!==i.UnsignedByteType&&(this.defines.MASK_PRECISION_HIGH="1"),this.needsUpdate=!0}setMaskTexture(e){this.maskTexture=e}set colorChannel(e){this.defines.COLOR_CHANNEL=e.toFixed(0),this.needsUpdate=!0}setColorChannel(e){this.colorChannel=e}set maskFunction(e){this.defines.MASK_FUNCTION=e.toFixed(0),this.needsUpdate=!0}setMaskFunction(e){this.maskFunction=e}get inverted(){return this.defines.INVERTED!==void 0}set inverted(e){this.inverted&&!e?delete this.defines.INVERTED:e&&(this.defines.INVERTED="1"),this.needsUpdate=!0}isInverted(){return this.inverted}setInverted(e){this.inverted=e}get strength(){return this.uniforms.strength.value}set strength(e){this.uniforms.strength.value=e}getStrength(){return this.strength}setStrength(e){this.strength=e}},O=class extends M{constructor(e,t="inputBuffer"){super("ShaderPass"),this.fullscreenMaterial=e,this.input=t}setInput(e){this.input=e}render(e,t,r,a,s){const o=this.fullscreenMaterial.uniforms;t!==null&&o!==void 0&&o[this.input]!==void 0&&(o[this.input].value=t.texture),e.setRenderTarget(this.renderToScreen?null:r),e.render(this.scene,this.camera)}initialize(e,t,r){r!==void 0&&r!==i.UnsignedByteType&&(this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1")}},fr=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
193
|
-
uniform mediump sampler2D nearColorBuffer;uniform mediump sampler2D farColorBuffer;
|
|
194
|
-
#else
|
|
195
|
-
uniform lowp sampler2D nearColorBuffer;uniform lowp sampler2D farColorBuffer;
|
|
196
|
-
#endif
|
|
197
|
-
uniform lowp sampler2D nearCoCBuffer;uniform lowp sampler2D farCoCBuffer;uniform float scale;void mainImage(const in vec4 inputColor,const in vec2 uv,const in float depth,out vec4 outputColor){vec4 colorNear=texture2D(nearColorBuffer,uv);vec4 colorFar=texture2D(farColorBuffer,uv);
|
|
198
|
-
#if MASK_FUNCTION == 1
|
|
199
|
-
vec2 cocNearFar=vec2(texture2D(nearCoCBuffer,uv).r,colorFar.a);cocNearFar.x=min(cocNearFar.x*scale,1.0);
|
|
200
|
-
#else
|
|
201
|
-
vec2 cocNearFar=vec2(texture2D(nearCoCBuffer,uv).r,texture2D(farCoCBuffer,uv).g);cocNearFar=min(cocNearFar*scale,1.0);
|
|
202
|
-
#endif
|
|
203
|
-
vec4 result=inputColor*(1.0-cocNearFar.y)+colorFar;result=mix(result,colorNear,cocNearFar.x);outputColor=result;}`,hr=class extends C{constructor(e,{blendFunction:t,worldFocusDistance:r,worldFocusRange:a,focusDistance:s=0,focalLength:o=.1,focusRange:n=o,bokehScale:l=1,resolutionScale:u=1,width:c=A.AUTO_SIZE,height:f=A.AUTO_SIZE,resolutionX:h=c,resolutionY:d=f}={}){super("DepthOfFieldEffect",fr,{blendFunction:t,attributes:I.DEPTH,uniforms:new Map([["nearColorBuffer",new i.Uniform$1(null)],["farColorBuffer",new i.Uniform$1(null)],["nearCoCBuffer",new i.Uniform$1(null)],["farCoCBuffer",new i.Uniform$1(null)],["scale",new i.Uniform$1(1)]])}),this.camera=e,this.renderTarget=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTarget.texture.name="DoF.Intermediate",this.renderTargetMasked=this.renderTarget.clone(),this.renderTargetMasked.texture.name="DoF.Masked.Far",this.renderTargetNear=this.renderTarget.clone(),this.renderTargetNear.texture.name="DoF.Bokeh.Near",this.uniforms.get("nearColorBuffer").value=this.renderTargetNear.texture,this.renderTargetFar=this.renderTarget.clone(),this.renderTargetFar.texture.name="DoF.Bokeh.Far",this.uniforms.get("farColorBuffer").value=this.renderTargetFar.texture,this.renderTargetCoC=this.renderTarget.clone(),this.renderTargetCoC.texture.name="DoF.CoC",this.uniforms.get("farCoCBuffer").value=this.renderTargetCoC.texture,this.renderTargetCoCBlurred=this.renderTargetCoC.clone(),this.renderTargetCoCBlurred.texture.name="DoF.CoC.Blurred",this.uniforms.get("nearCoCBuffer").value=this.renderTargetCoCBlurred.texture,this.cocPass=new O(new Dt(e));const v=this.cocMaterial;v.focusDistance=s,v.focusRange=n,r!==void 0&&(v.worldFocusDistance=r),a!==void 0&&(v.worldFocusRange=a),this.blurPass=new q({resolutionScale:u,resolutionX:h,resolutionY:d,kernelSize:G.MEDIUM}),this.maskPass=new O(new Tt(this.renderTargetCoC.texture));const g=this.maskPass.fullscreenMaterial;g.colorChannel=Z.GREEN,this.maskFunction=Ve.MULTIPLY_RGB,this.bokehNearBasePass=new O(new he(!1,!0)),this.bokehNearBasePass.fullscreenMaterial.cocBuffer=this.renderTargetCoCBlurred.texture,this.bokehNearFillPass=new O(new he(!0,!0)),this.bokehNearFillPass.fullscreenMaterial.cocBuffer=this.renderTargetCoCBlurred.texture,this.bokehFarBasePass=new O(new he(!1,!1)),this.bokehFarBasePass.fullscreenMaterial.cocBuffer=this.renderTargetCoC.texture,this.bokehFarFillPass=new O(new he(!0,!1)),this.bokehFarFillPass.fullscreenMaterial.cocBuffer=this.renderTargetCoC.texture,this.target=null;const m=this.resolution=new A(this,h,d,u);m.addEventListener("change",T=>this.setSize(m.baseWidth,m.baseHeight)),this.bokehScale=l}set mainCamera(e){this.camera=e,this.cocMaterial.copyCameraSettings(e)}get cocTexture(){return this.renderTargetCoC.texture}get maskFunction(){return this.maskPass.fullscreenMaterial.maskFunction}set maskFunction(e){this.maskFunction!==e&&(this.defines.set("MASK_FUNCTION",e.toFixed(0)),this.maskPass.fullscreenMaterial.maskFunction=e,this.setChanged())}get cocMaterial(){return this.cocPass.fullscreenMaterial}get circleOfConfusionMaterial(){return this.cocMaterial}getCircleOfConfusionMaterial(){return this.cocMaterial}getBlurPass(){return this.blurPass}getResolution(){return this.resolution}get bokehScale(){return this.uniforms.get("scale").value}set bokehScale(e){this.bokehNearBasePass.fullscreenMaterial.scale=e,this.bokehNearFillPass.fullscreenMaterial.scale=e,this.bokehFarBasePass.fullscreenMaterial.scale=e,this.bokehFarFillPass.fullscreenMaterial.scale=e,this.maskPass.fullscreenMaterial.strength=e,this.uniforms.get("scale").value=e}getBokehScale(){return this.bokehScale}setBokehScale(e){this.bokehScale=e}getTarget(){return this.target}setTarget(e){this.target=e}calculateFocusDistance(e){const t=this.camera,r=t.position.distanceTo(e);return W(-r,t.near,t.far)}setDepthTexture(e,t=i.BasicDepthPacking){this.cocMaterial.depthBuffer=e,this.cocMaterial.depthPacking=t}update(e,t,r){const a=this.renderTarget,s=this.renderTargetCoC,o=this.renderTargetCoCBlurred,n=this.renderTargetMasked;if(this.target!==null){const l=this.calculateFocusDistance(this.target);this.cocMaterial.focusDistance=l}this.cocPass.render(e,null,s),this.blurPass.render(e,s,o),this.maskPass.render(e,t,n),this.bokehFarBasePass.render(e,n,a),this.bokehFarFillPass.render(e,a,this.renderTargetFar),this.bokehNearBasePass.render(e,t,a),this.bokehNearFillPass.render(e,a,this.renderTargetNear)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t);const a=r.width,s=r.height;this.cocPass.setSize(e,t),this.blurPass.setSize(e,t),this.maskPass.setSize(e,t),this.renderTargetFar.setSize(e,t),this.renderTargetCoC.setSize(e,t),this.renderTargetMasked.setSize(e,t),this.renderTarget.setSize(a,s),this.renderTargetNear.setSize(a,s),this.renderTargetCoCBlurred.setSize(a,s),this.bokehNearBasePass.fullscreenMaterial.setSize(e,t),this.bokehNearFillPass.fullscreenMaterial.setSize(e,t),this.bokehFarBasePass.fullscreenMaterial.setSize(e,t),this.bokehFarFillPass.fullscreenMaterial.setSize(e,t)}initialize(e,t,r){this.cocPass.initialize(e,t,r),this.maskPass.initialize(e,t,r),this.bokehNearBasePass.initialize(e,t,r),this.bokehNearFillPass.initialize(e,t,r),this.bokehFarBasePass.initialize(e,t,r),this.bokehFarFillPass.initialize(e,t,r),this.blurPass.initialize(e,t,i.UnsignedByteType),e.capabilities.logarithmicDepthBuffer&&(this.cocPass.fullscreenMaterial.defines.LOG_DEPTH="1"),r!==void 0&&(this.renderTarget.texture.type=r,this.renderTargetNear.texture.type=r,this.renderTargetFar.texture.type=r,this.renderTargetMasked.texture.type=r,e!==null&&e.outputColorSpace===i.SRGBColorSpace&&(this.renderTarget.texture.colorSpace=i.SRGBColorSpace,this.renderTargetNear.texture.colorSpace=i.SRGBColorSpace,this.renderTargetFar.texture.colorSpace=i.SRGBColorSpace,this.renderTargetMasked.texture.colorSpace=i.SRGBColorSpace))}},dr="uniform vec2 angle;uniform float scale;float pattern(const in vec2 uv){vec2 point=scale*vec2(dot(angle.yx,vec2(uv.x,-uv.y)),dot(angle,uv));return(sin(point.x)*sin(point.y))*4.0;}void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec3 color=vec3(inputColor.rgb*10.0-5.0+pattern(uv*resolution));outputColor=vec4(color,inputColor.a);}",vr=class extends C{constructor({blendFunction:e,angle:t=Math.PI*.5,scale:r=1}={}){super("DotScreenEffect",dr,{blendFunction:e,uniforms:new Map([["angle",new i.Uniform$1(new i.Vector2)],["scale",new i.Uniform$1(r)]])}),this.angle=t}get angle(){return Math.acos(this.uniforms.get("angle").value.y)}set angle(e){this.uniforms.get("angle").value.set(Math.sin(e),Math.cos(e))}getAngle(){return this.angle}setAngle(e){this.angle=e}get scale(){return this.uniforms.get("scale").value}set scale(e){this.uniforms.get("scale").value=e}},pr=`#define QUALITY(q) ((q) < 5 ? 1.0 : ((q) > 5 ? ((q) < 10 ? 2.0 : ((q) < 11 ? 4.0 : 8.0)) : 1.5))
|
|
204
|
-
#define ONE_OVER_TWELVE 0.08333333333333333
|
|
205
|
-
varying vec2 vUvDown;varying vec2 vUvUp;varying vec2 vUvLeft;varying vec2 vUvRight;varying vec2 vUvDownLeft;varying vec2 vUvUpRight;varying vec2 vUvUpLeft;varying vec2 vUvDownRight;vec4 fxaa(const in vec4 inputColor,const in vec2 uv){float lumaCenter=luminance(inputColor.rgb);float lumaDown=luminance(texture2D(inputBuffer,vUvDown).rgb);float lumaUp=luminance(texture2D(inputBuffer,vUvUp).rgb);float lumaLeft=luminance(texture2D(inputBuffer,vUvLeft).rgb);float lumaRight=luminance(texture2D(inputBuffer,vUvRight).rgb);float lumaMin=min(lumaCenter,min(min(lumaDown,lumaUp),min(lumaLeft,lumaRight)));float lumaMax=max(lumaCenter,max(max(lumaDown,lumaUp),max(lumaLeft,lumaRight)));float lumaRange=lumaMax-lumaMin;if(lumaRange<max(EDGE_THRESHOLD_MIN,lumaMax*EDGE_THRESHOLD_MAX)){return inputColor;}float lumaDownLeft=luminance(texture2D(inputBuffer,vUvDownLeft).rgb);float lumaUpRight=luminance(texture2D(inputBuffer,vUvUpRight).rgb);float lumaUpLeft=luminance(texture2D(inputBuffer,vUvUpLeft).rgb);float lumaDownRight=luminance(texture2D(inputBuffer,vUvDownRight).rgb);float lumaDownUp=lumaDown+lumaUp;float lumaLeftRight=lumaLeft+lumaRight;float lumaLeftCorners=lumaDownLeft+lumaUpLeft;float lumaDownCorners=lumaDownLeft+lumaDownRight;float lumaRightCorners=lumaDownRight+lumaUpRight;float lumaUpCorners=lumaUpRight+lumaUpLeft;float edgeHorizontal=(abs(-2.0*lumaLeft+lumaLeftCorners)+abs(-2.0*lumaCenter+lumaDownUp)*2.0+abs(-2.0*lumaRight+lumaRightCorners));float edgeVertical=(abs(-2.0*lumaUp+lumaUpCorners)+abs(-2.0*lumaCenter+lumaLeftRight)*2.0+abs(-2.0*lumaDown+lumaDownCorners));bool isHorizontal=(edgeHorizontal>=edgeVertical);float stepLength=isHorizontal?texelSize.y:texelSize.x;float luma1=isHorizontal?lumaDown:lumaLeft;float luma2=isHorizontal?lumaUp:lumaRight;float gradient1=abs(luma1-lumaCenter);float gradient2=abs(luma2-lumaCenter);bool is1Steepest=gradient1>=gradient2;float gradientScaled=0.25*max(gradient1,gradient2);float lumaLocalAverage=0.0;if(is1Steepest){stepLength=-stepLength;lumaLocalAverage=0.5*(luma1+lumaCenter);}else{lumaLocalAverage=0.5*(luma2+lumaCenter);}vec2 currentUv=uv;if(isHorizontal){currentUv.y+=stepLength*0.5;}else{currentUv.x+=stepLength*0.5;}vec2 offset=isHorizontal?vec2(texelSize.x,0.0):vec2(0.0,texelSize.y);vec2 uv1=currentUv-offset*QUALITY(0);vec2 uv2=currentUv+offset*QUALITY(0);float lumaEnd1=luminance(texture2D(inputBuffer,uv1).rgb);float lumaEnd2=luminance(texture2D(inputBuffer,uv2).rgb);lumaEnd1-=lumaLocalAverage;lumaEnd2-=lumaLocalAverage;bool reached1=abs(lumaEnd1)>=gradientScaled;bool reached2=abs(lumaEnd2)>=gradientScaled;bool reachedBoth=reached1&&reached2;if(!reached1){uv1-=offset*QUALITY(1);}if(!reached2){uv2+=offset*QUALITY(1);}if(!reachedBoth){for(int i=2;i<SAMPLES;++i){if(!reached1){lumaEnd1=luminance(texture2D(inputBuffer,uv1).rgb);lumaEnd1=lumaEnd1-lumaLocalAverage;}if(!reached2){lumaEnd2=luminance(texture2D(inputBuffer,uv2).rgb);lumaEnd2=lumaEnd2-lumaLocalAverage;}reached1=abs(lumaEnd1)>=gradientScaled;reached2=abs(lumaEnd2)>=gradientScaled;reachedBoth=reached1&&reached2;if(!reached1){uv1-=offset*QUALITY(i);}if(!reached2){uv2+=offset*QUALITY(i);}if(reachedBoth){break;}}}float distance1=isHorizontal?(uv.x-uv1.x):(uv.y-uv1.y);float distance2=isHorizontal?(uv2.x-uv.x):(uv2.y-uv.y);bool isDirection1=distance1<distance2;float distanceFinal=min(distance1,distance2);float edgeThickness=(distance1+distance2);bool isLumaCenterSmaller=lumaCenter<lumaLocalAverage;bool correctVariation1=(lumaEnd1<0.0)!=isLumaCenterSmaller;bool correctVariation2=(lumaEnd2<0.0)!=isLumaCenterSmaller;bool correctVariation=isDirection1?correctVariation1:correctVariation2;float pixelOffset=-distanceFinal/edgeThickness+0.5;float finalOffset=correctVariation?pixelOffset:0.0;float lumaAverage=ONE_OVER_TWELVE*(2.0*(lumaDownUp+lumaLeftRight)+lumaLeftCorners+lumaRightCorners);float subPixelOffset1=clamp(abs(lumaAverage-lumaCenter)/lumaRange,0.0,1.0);float subPixelOffset2=(-2.0*subPixelOffset1+3.0)*subPixelOffset1*subPixelOffset1;float subPixelOffsetFinal=subPixelOffset2*subPixelOffset2*SUBPIXEL_QUALITY;finalOffset=max(finalOffset,subPixelOffsetFinal);vec2 finalUv=uv;if(isHorizontal){finalUv.y+=finalOffset*stepLength;}else{finalUv.x+=finalOffset*stepLength;}return texture2D(inputBuffer,finalUv);}void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){outputColor=fxaa(inputColor,uv);}`,mr="varying vec2 vUvDown;varying vec2 vUvUp;varying vec2 vUvLeft;varying vec2 vUvRight;varying vec2 vUvDownLeft;varying vec2 vUvUpRight;varying vec2 vUvUpLeft;varying vec2 vUvDownRight;void mainSupport(const in vec2 uv){vUvDown=uv+vec2(0.0,-1.0)*texelSize;vUvUp=uv+vec2(0.0,1.0)*texelSize;vUvRight=uv+vec2(1.0,0.0)*texelSize;vUvLeft=uv+vec2(-1.0,0.0)*texelSize;vUvDownLeft=uv+vec2(-1.0,-1.0)*texelSize;vUvUpRight=uv+vec2(1.0,1.0)*texelSize;vUvUpLeft=uv+vec2(-1.0,1.0)*texelSize;vUvDownRight=uv+vec2(1.0,-1.0)*texelSize;}",gr=class extends C{constructor({blendFunction:e=p.SRC}={}){super("FXAAEffect",pr,{vertexShader:mr,blendFunction:e,defines:new Map([["EDGE_THRESHOLD_MIN","0.0312"],["EDGE_THRESHOLD_MAX","0.125"],["SUBPIXEL_QUALITY","0.75"],["SAMPLES","12"]])})}get minEdgeThreshold(){return Number(this.defines.get("EDGE_THRESHOLD_MIN"))}set minEdgeThreshold(e){this.defines.set("EDGE_THRESHOLD_MIN",e.toFixed(12)),this.setChanged()}get maxEdgeThreshold(){return Number(this.defines.get("EDGE_THRESHOLD_MAX"))}set maxEdgeThreshold(e){this.defines.set("EDGE_THRESHOLD_MAX",e.toFixed(12)),this.setChanged()}get subpixelQuality(){return Number(this.defines.get("SUBPIXEL_QUALITY"))}set subpixelQuality(e){this.defines.set("SUBPIXEL_QUALITY",e.toFixed(12)),this.setChanged()}get samples(){return Number(this.defines.get("SAMPLES"))}set samples(e){this.defines.set("SAMPLES",e.toFixed(0)),this.setChanged()}},Ar="uniform float gamma;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){outputColor=LinearToGamma(max(inputColor,0.0),gamma);}",xr=class extends C{constructor({blendFunction:e=p.SRC,gamma:t=2}={}){super("GammaCorrectionEffect",Ar,{blendFunction:e,uniforms:new Map([["gamma",new i.Uniform$1(t)]])})}},ae={DISABLED:0,SPORADIC:1,CONSTANT_MILD:2,CONSTANT_WILD:3};function Dr(e,t,r){const a=new Map([[i.LuminanceFormat,1],[i.RedFormat,1],[i.RGFormat,2],[i.RGBAFormat,4]]);let s;if(a.has(t)||console.error("Invalid noise texture format"),r===i.UnsignedByteType){s=new Uint8Array(e*a.get(t));for(let o=0,n=s.length;o<n;++o)s[o]=Math.random()*255+.5}else{s=new Float32Array(e*a.get(t));for(let o=0,n=s.length;o<n;++o)s[o]=Math.random()}return s}var Ee=class extends i.DataTexture{constructor(e,t,r=i.LuminanceFormat,a=i.UnsignedByteType){super(Dr(e*t,r,a),e,t,r,a),this.needsUpdate=!0}},Tr="uniform lowp sampler2D perturbationMap;uniform bool active;uniform float columns;uniform float random;uniform vec2 seeds;uniform vec2 distortion;void mainUv(inout vec2 uv){if(active){if(uv.y<distortion.x+columns&&uv.y>distortion.x-columns*random){float sx=clamp(ceil(seeds.x),0.0,1.0);uv.y=sx*(1.0-(uv.y+distortion.y))+(1.0-sx)*distortion.y;}if(uv.x<distortion.y+columns&&uv.x>distortion.y-columns*random){float sy=clamp(ceil(seeds.y),0.0,1.0);uv.x=sy*distortion.x+(1.0-sy)*(1.0-(uv.x+distortion.x));}vec2 normal=texture2D(perturbationMap,uv*random*random).rg;uv+=normal*seeds*(random*0.2);}}",Ae="Glitch.Generated";function F(e,t){return e+Math.random()*(t-e)}var wr=class extends C{constructor({chromaticAberrationOffset:e=null,delay:t=new i.Vector2(1.5,3.5),duration:r=new i.Vector2(.6,1),strength:a=new i.Vector2(.3,1),columns:s=.05,ratio:o=.85,perturbationMap:n=null,dtSize:l=64}={}){if(super("GlitchEffect",Tr,{uniforms:new Map([["perturbationMap",new i.Uniform$1(null)],["columns",new i.Uniform$1(s)],["active",new i.Uniform$1(!1)],["random",new i.Uniform$1(1)],["seeds",new i.Uniform$1(new i.Vector2)],["distortion",new i.Uniform$1(new i.Vector2)]])}),n===null){const u=new Ee(l,l,i.RGBAFormat);u.name=Ae,this.perturbationMap=u}else this.perturbationMap=n;this.time=0,this.distortion=this.uniforms.get("distortion").value,this.delay=t,this.duration=r,this.breakPoint=new i.Vector2(F(this.delay.x,this.delay.y),F(this.duration.x,this.duration.y)),this.strength=a,this.mode=ae.SPORADIC,this.ratio=o,this.chromaticAberrationOffset=e}get seeds(){return this.uniforms.get("seeds").value}get active(){return this.uniforms.get("active").value}isActive(){return this.active}get minDelay(){return this.delay.x}set minDelay(e){this.delay.x=e}getMinDelay(){return this.delay.x}setMinDelay(e){this.delay.x=e}get maxDelay(){return this.delay.y}set maxDelay(e){this.delay.y=e}getMaxDelay(){return this.delay.y}setMaxDelay(e){this.delay.y=e}get minDuration(){return this.duration.x}set minDuration(e){this.duration.x=e}getMinDuration(){return this.duration.x}setMinDuration(e){this.duration.x=e}get maxDuration(){return this.duration.y}set maxDuration(e){this.duration.y=e}getMaxDuration(){return this.duration.y}setMaxDuration(e){this.duration.y=e}get minStrength(){return this.strength.x}set minStrength(e){this.strength.x=e}getMinStrength(){return this.strength.x}setMinStrength(e){this.strength.x=e}get maxStrength(){return this.strength.y}set maxStrength(e){this.strength.y=e}getMaxStrength(){return this.strength.y}setMaxStrength(e){this.strength.y=e}getMode(){return this.mode}setMode(e){this.mode=e}getGlitchRatio(){return 1-this.ratio}setGlitchRatio(e){this.ratio=Math.min(Math.max(1-e,0),1)}get columns(){return this.uniforms.get("columns").value}set columns(e){this.uniforms.get("columns").value=e}getGlitchColumns(){return this.columns}setGlitchColumns(e){this.columns=e}getChromaticAberrationOffset(){return this.chromaticAberrationOffset}setChromaticAberrationOffset(e){this.chromaticAberrationOffset=e}get perturbationMap(){return this.uniforms.get("perturbationMap").value}set perturbationMap(e){const t=this.perturbationMap;t!==null&&t.name===Ae&&t.dispose(),e.minFilter=e.magFilter=i.NearestFilter,e.wrapS=e.wrapT=i.RepeatWrapping,e.generateMipmaps=!1,this.uniforms.get("perturbationMap").value=e}getPerturbationMap(){return this.perturbationMap}setPerturbationMap(e){this.perturbationMap=e}generatePerturbationMap(e=64){const t=new Ee(e,e,i.RGBAFormat);return t.name=Ae,t}update(e,t,r){const a=this.mode,s=this.breakPoint,o=this.chromaticAberrationOffset,n=this.strength;let l=this.time,u=!1,c=0,f=0,h;a!==ae.DISABLED&&(a===ae.SPORADIC&&(l+=r,h=l>s.x,l>=s.x+s.y&&(s.set(F(this.delay.x,this.delay.y),F(this.duration.x,this.duration.y)),l=0)),c=Math.random(),this.uniforms.get("random").value=c,h&&c>this.ratio||a===ae.CONSTANT_WILD?(u=!0,c*=n.y*.03,f=F(-Math.PI,Math.PI),this.seeds.set(F(-n.y,n.y),F(-n.y,n.y)),this.distortion.set(F(0,1),F(0,1))):(h||a===ae.CONSTANT_MILD)&&(u=!0,c*=n.x*.03,f=F(-Math.PI,Math.PI),this.seeds.set(F(-n.x,n.x),F(-n.x,n.x)),this.distortion.set(F(0,1),F(0,1))),this.time=l),o!==null&&(u?o.set(Math.cos(f),Math.sin(f)).multiplyScalar(c):o.set(0,0)),this.uniforms.get("active").value=u}dispose(){const e=this.perturbationMap;e!==null&&e.name===Ae&&e.dispose()}},le={DEFAULT:0,KEEP_MAX_DEPTH:1,DISCARD_MAX_DEPTH:2},Sr=`#include <common>
|
|
206
|
-
#include <packing>
|
|
207
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
208
|
-
uniform highp sampler2D depthBuffer0;uniform highp sampler2D depthBuffer1;
|
|
209
|
-
#else
|
|
210
|
-
uniform mediump sampler2D depthBuffer0;uniform mediump sampler2D depthBuffer1;
|
|
211
|
-
#endif
|
|
212
|
-
uniform sampler2D inputBuffer;uniform vec2 cameraNearFar;float getViewZ(const in float depth){
|
|
213
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
214
|
-
return perspectiveDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);
|
|
215
|
-
#else
|
|
216
|
-
return orthographicDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);
|
|
217
|
-
#endif
|
|
218
|
-
}varying vec2 vUv;void main(){vec2 depth;
|
|
219
|
-
#if DEPTH_PACKING_0 == 3201
|
|
220
|
-
depth.x=unpackRGBAToDepth(texture2D(depthBuffer0,vUv));
|
|
221
|
-
#else
|
|
222
|
-
depth.x=texture2D(depthBuffer0,vUv).r;
|
|
223
|
-
#ifdef LOG_DEPTH
|
|
224
|
-
float d=pow(2.0,depth.x*log2(cameraNearFar.y+1.0))-1.0;float a=cameraNearFar.y/(cameraNearFar.y-cameraNearFar.x);float b=cameraNearFar.y*cameraNearFar.x/(cameraNearFar.x-cameraNearFar.y);depth.x=a+b/d;
|
|
225
|
-
#endif
|
|
226
|
-
#endif
|
|
227
|
-
#if DEPTH_PACKING_1 == 3201
|
|
228
|
-
depth.y=unpackRGBAToDepth(texture2D(depthBuffer1,vUv));
|
|
229
|
-
#else
|
|
230
|
-
depth.y=texture2D(depthBuffer1,vUv).r;
|
|
231
|
-
#ifdef LOG_DEPTH
|
|
232
|
-
float d=pow(2.0,depth.y*log2(cameraNearFar.y+1.0))-1.0;float a=cameraNearFar.y/(cameraNearFar.y-cameraNearFar.x);float b=cameraNearFar.y*cameraNearFar.x/(cameraNearFar.x-cameraNearFar.y);depth.y=a+b/d;
|
|
233
|
-
#endif
|
|
234
|
-
#endif
|
|
235
|
-
bool isMaxDepth=(depth.x==1.0);
|
|
236
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
237
|
-
depth.x=viewZToOrthographicDepth(getViewZ(depth.x),cameraNearFar.x,cameraNearFar.y);depth.y=viewZToOrthographicDepth(getViewZ(depth.y),cameraNearFar.x,cameraNearFar.y);
|
|
238
|
-
#endif
|
|
239
|
-
#if DEPTH_TEST_STRATEGY == 0
|
|
240
|
-
bool keep=depthTest(depth.x,depth.y);
|
|
241
|
-
#elif DEPTH_TEST_STRATEGY == 1
|
|
242
|
-
bool keep=isMaxDepth||depthTest(depth.x,depth.y);
|
|
243
|
-
#else
|
|
244
|
-
bool keep=!isMaxDepth&&depthTest(depth.x,depth.y);
|
|
245
|
-
#endif
|
|
246
|
-
if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`,We=class extends i.ShaderMaterial{constructor(){super({name:"DepthMaskMaterial",defines:{DEPTH_EPSILON:"0.0001",DEPTH_PACKING_0:"0",DEPTH_PACKING_1:"0",DEPTH_TEST_STRATEGY:le.KEEP_MAX_DEPTH},uniforms:{inputBuffer:new i.Uniform$1(null),depthBuffer0:new i.Uniform$1(null),depthBuffer1:new i.Uniform$1(null),cameraNearFar:new i.Uniform$1(new i.Vector2(1,1))},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Sr,vertexShader:K}),this.depthMode=i.LessDepth}set depthBuffer0(e){this.uniforms.depthBuffer0.value=e}set depthPacking0(e){this.defines.DEPTH_PACKING_0=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer0(e,t=i.BasicDepthPacking){this.depthBuffer0=e,this.depthPacking0=t}set depthBuffer1(e){this.uniforms.depthBuffer1.value=e}set depthPacking1(e){this.defines.DEPTH_PACKING_1=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer1(e,t=i.BasicDepthPacking){this.depthBuffer1=e,this.depthPacking1=t}get maxDepthStrategy(){return Number(this.defines.DEPTH_TEST_STRATEGY)}set maxDepthStrategy(e){this.defines.DEPTH_TEST_STRATEGY=e.toFixed(0),this.needsUpdate=!0}get keepFar(){return this.maxDepthStrategy}set keepFar(e){this.maxDepthStrategy=e?le.KEEP_MAX_DEPTH:le.DISCARD_MAX_DEPTH}getMaxDepthStrategy(){return this.maxDepthStrategy}setMaxDepthStrategy(e){this.maxDepthStrategy=e}get epsilon(){return Number(this.defines.DEPTH_EPSILON)}set epsilon(e){this.defines.DEPTH_EPSILON=e.toFixed(16),this.needsUpdate=!0}getEpsilon(){return this.epsilon}setEpsilon(e){this.epsilon=e}get depthMode(){return Number(this.defines.DEPTH_MODE)}set depthMode(e){let t;switch(e){case i.NeverDepth:t="false";break;case i.AlwaysDepth:t="true";break;case i.EqualDepth:t="abs(d1 - d0) <= DEPTH_EPSILON";break;case i.NotEqualDepth:t="abs(d1 - d0) > DEPTH_EPSILON";break;case i.LessDepth:t="d0 > d1";break;case i.LessEqualDepth:t="d0 >= d1";break;case i.GreaterEqualDepth:t="d0 <= d1";break;case i.GreaterDepth:default:t="d0 < d1";break}this.defines.DEPTH_MODE=e.toFixed(0),this.defines["depthTest(d0, d1)"]=t,this.needsUpdate=!0}getDepthMode(){return this.depthMode}setDepthMode(e){this.depthMode=e}adoptCameraSettings(e){this.copyCameraSettings(e)}copyCameraSettings(e){e&&(this.uniforms.cameraNearFar.value.set(e.near,e.far),e instanceof i.PerspectiveCamera?this.defines.PERSPECTIVE_CAMERA="1":delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}},Cr=`#include <common>
|
|
247
|
-
#include <dithering_pars_fragment>
|
|
248
|
-
#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
249
|
-
uniform mediump sampler2D inputBuffer;
|
|
250
|
-
#else
|
|
251
|
-
uniform lowp sampler2D inputBuffer;
|
|
252
|
-
#endif
|
|
253
|
-
uniform vec2 lightPosition;uniform float exposure;uniform float decay;uniform float density;uniform float weight;uniform float clampMax;varying vec2 vUv;void main(){vec2 coord=vUv;vec2 delta=lightPosition-coord;delta*=1.0/SAMPLES_FLOAT*density;float illuminationDecay=1.0;vec4 color=vec4(0.0);for(int i=0;i<SAMPLES_INT;++i){coord+=delta;vec4 texel=texture2D(inputBuffer,coord);texel*=illuminationDecay*weight;color+=texel;illuminationDecay*=decay;}gl_FragColor=clamp(color*exposure,0.0,clampMax);
|
|
254
|
-
#include <dithering_fragment>
|
|
255
|
-
}`,wt=class extends i.ShaderMaterial{constructor(e){super({name:"GodRaysMaterial",defines:{SAMPLES_INT:"60",SAMPLES_FLOAT:"60.0"},uniforms:{inputBuffer:new i.Uniform$1(null),lightPosition:new i.Uniform$1(e),density:new i.Uniform$1(1),decay:new i.Uniform$1(1),weight:new i.Uniform$1(1),exposure:new i.Uniform$1(1),clampMax:new i.Uniform$1(1)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Cr,vertexShader:K})}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}get lightPosition(){return this.uniforms.lightPosition.value}getLightPosition(){return this.uniforms.lightPosition.value}setLightPosition(e){this.uniforms.lightPosition.value=e}get density(){return this.uniforms.density.value}set density(e){this.uniforms.density.value=e}getDensity(){return this.uniforms.density.value}setDensity(e){this.uniforms.density.value=e}get decay(){return this.uniforms.decay.value}set decay(e){this.uniforms.decay.value=e}getDecay(){return this.uniforms.decay.value}setDecay(e){this.uniforms.decay.value=e}get weight(){return this.uniforms.weight.value}set weight(e){this.uniforms.weight.value=e}getWeight(){return this.uniforms.weight.value}setWeight(e){this.uniforms.weight.value=e}get exposure(){return this.uniforms.exposure.value}set exposure(e){this.uniforms.exposure.value=e}getExposure(){return this.uniforms.exposure.value}setExposure(e){this.uniforms.exposure.value=e}get maxIntensity(){return this.uniforms.clampMax.value}set maxIntensity(e){this.uniforms.clampMax.value=e}getMaxIntensity(){return this.uniforms.clampMax.value}setMaxIntensity(e){this.uniforms.clampMax.value=e}get samples(){return Number(this.defines.SAMPLES_INT)}set samples(e){const t=Math.floor(e);this.defines.SAMPLES_INT=t.toFixed(0),this.defines.SAMPLES_FLOAT=t.toFixed(1),this.needsUpdate=!0}getSamples(){return this.samples}setSamples(e){this.samples=e}},pe=class extends M{constructor(e,t,r=null){super("RenderPass",e,t),this.needsSwap=!1,this.clearPass=new _,this.overrideMaterialManager=r===null?null:new Le(r),this.ignoreBackground=!1,this.skipShadowMapUpdate=!1,this.selection=null}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get renderToScreen(){return super.renderToScreen}set renderToScreen(e){super.renderToScreen=e,this.clearPass.renderToScreen=e}get overrideMaterial(){const e=this.overrideMaterialManager;return e!==null?e.material:null}set overrideMaterial(e){const t=this.overrideMaterialManager;e!==null?t!==null?t.setMaterial(e):this.overrideMaterialManager=new Le(e):t!==null&&(t.dispose(),this.overrideMaterialManager=null)}getOverrideMaterial(){return this.overrideMaterial}setOverrideMaterial(e){this.overrideMaterial=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getSelection(){return this.selection}setSelection(e){this.selection=e}isBackgroundDisabled(){return this.ignoreBackground}setBackgroundDisabled(e){this.ignoreBackground=e}isShadowMapDisabled(){return this.skipShadowMapUpdate}setShadowMapDisabled(e){this.skipShadowMapUpdate=e}getClearPass(){return this.clearPass}render(e,t,r,a,s){const o=this.scene,n=this.camera,l=this.selection,u=n.layers.mask,c=o.background,f=e.shadowMap.autoUpdate,h=this.renderToScreen?null:t;l!==null&&n.layers.set(l.getLayer()),this.skipShadowMapUpdate&&(e.shadowMap.autoUpdate=!1),(this.ignoreBackground||this.clearPass.overrideClearColor!==null)&&(o.background=null),this.clearPass.enabled&&this.clearPass.render(e,t),e.setRenderTarget(h),this.overrideMaterialManager!==null?this.overrideMaterialManager.render(e,o,n):e.render(o,n),n.layers.mask=u,o.background=c,e.shadowMap.autoUpdate=f}},Er=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
256
|
-
uniform mediump sampler2D map;
|
|
257
|
-
#else
|
|
258
|
-
uniform lowp sampler2D map;
|
|
259
|
-
#endif
|
|
260
|
-
void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){outputColor=texture2D(map,uv);}`,Pe=new i.Vector3,je=new i.Matrix4,yr=class extends C{constructor(e,t,{blendFunction:r=p.SCREEN,samples:a=60,density:s=.96,decay:o=.9,weight:n=.4,exposure:l=.6,clampMax:u=1,blur:c=!0,kernelSize:f=G.SMALL,resolutionScale:h=.5,width:d=A.AUTO_SIZE,height:v=A.AUTO_SIZE,resolutionX:g=d,resolutionY:m=v}={}){super("GodRaysEffect",Er,{blendFunction:r,attributes:I.DEPTH,uniforms:new Map([["map",new i.Uniform$1(null)]])}),this.camera=e,this._lightSource=t,this.lightSource=t,this.lightScene=new i.Scene,this.screenPosition=new i.Vector2,this.renderTargetA=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTargetA.texture.name="GodRays.Target.A",this.renderTargetB=this.renderTargetA.clone(),this.renderTargetB.texture.name="GodRays.Target.B",this.uniforms.get("map").value=this.renderTargetB.texture,this.renderTargetLight=new i.WebGLRenderTarget(1,1),this.renderTargetLight.texture.name="GodRays.Light",this.renderTargetLight.depthTexture=new i.DepthTexture,this.renderPassLight=new pe(this.lightScene,e),this.renderPassLight.clearPass.overrideClearColor=new i.Color(0),this.clearPass=new _(!0,!1,!1),this.clearPass.overrideClearColor=new i.Color(0),this.blurPass=new q({kernelSize:f}),this.blurPass.enabled=c,this.depthMaskPass=new O(new We);const T=this.depthMaskMaterial;T.depthBuffer1=this.renderTargetLight.depthTexture,T.copyCameraSettings(e),this.godRaysPass=new O(new wt(this.screenPosition));const w=this.godRaysMaterial;w.density=s,w.decay=o,w.weight=n,w.exposure=l,w.maxIntensity=u,w.samples=a;const D=this.resolution=new A(this,g,m,h);D.addEventListener("change",x=>this.setSize(D.baseWidth,D.baseHeight))}set mainCamera(e){this.camera=e,this.renderPassLight.mainCamera=e,this.depthMaskMaterial.copyCameraSettings(e)}get lightSource(){return this._lightSource}set lightSource(e){this._lightSource=e,e!==null&&(e.material.depthWrite=!1,e.material.transparent=!0)}getBlurPass(){return this.blurPass}get texture(){return this.renderTargetB.texture}getTexture(){return this.texture}get depthMaskMaterial(){return this.depthMaskPass.fullscreenMaterial}get godRaysMaterial(){return this.godRaysPass.fullscreenMaterial}getGodRaysMaterial(){return this.godRaysMaterial}getResolution(){return this.resolution}get width(){return this.resolution.width}set width(e){this.resolution.preferredWidth=e}get height(){return this.resolution.height}set height(e){this.resolution.preferredHeight=e}get dithering(){return this.godRaysMaterial.dithering}set dithering(e){const t=this.godRaysMaterial;t.dithering=e,t.needsUpdate=!0}get blur(){return this.blurPass.enabled}set blur(e){this.blurPass.enabled=e}get kernelSize(){return this.blurPass.kernelSize}set kernelSize(e){this.blurPass.kernelSize=e}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}get samples(){return this.godRaysMaterial.samples}set samples(e){this.godRaysMaterial.samples=e}setDepthTexture(e,t=i.BasicDepthPacking){this.depthMaskPass.fullscreenMaterial.depthBuffer0=e,this.depthMaskPass.fullscreenMaterial.depthPacking0=t}update(e,t,r){const a=this.lightSource,s=a.parent,o=a.matrixAutoUpdate,n=this.renderTargetA,l=this.renderTargetLight;a.material.depthWrite=!0,a.matrixAutoUpdate=!1,a.updateWorldMatrix(!0,!1),s!==null&&(o||je.copy(a.matrix),a.matrix.copy(a.matrixWorld)),this.lightScene.add(a),this.renderPassLight.render(e,l),this.clearPass.render(e,n),this.depthMaskPass.render(e,l,n),a.material.depthWrite=!1,a.matrixAutoUpdate=o,s!==null&&(o||a.matrix.copy(je),s.add(a)),Pe.setFromMatrixPosition(a.matrixWorld).project(this.camera),this.screenPosition.set(Math.min(Math.max((Pe.x+1)*.5,-1),2),Math.min(Math.max((Pe.y+1)*.5,-1),2)),this.blurPass.enabled&&this.blurPass.render(e,n,n),this.godRaysPass.render(e,n,this.renderTargetB)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t);const a=r.width,s=r.height;this.renderTargetA.setSize(a,s),this.renderTargetB.setSize(a,s),this.renderTargetLight.setSize(a,s),this.blurPass.resolution.copy(r)}initialize(e,t,r){this.blurPass.initialize(e,t,r),this.renderPassLight.initialize(e,t,r),this.depthMaskPass.initialize(e,t,r),this.godRaysPass.initialize(e,t,r),r!==void 0&&(this.renderTargetA.texture.type=r,this.renderTargetB.texture.type=r,this.renderTargetLight.texture.type=r,e!==null&&e.outputColorSpace===i.SRGBColorSpace&&(this.renderTargetA.texture.colorSpace=i.SRGBColorSpace,this.renderTargetB.texture.colorSpace=i.SRGBColorSpace,this.renderTargetLight.texture.colorSpace=i.SRGBColorSpace))}},Br="uniform vec2 scale;uniform float lineWidth;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){float grid=0.5-max(abs(mod(uv.x*scale.x,1.0)-0.5),abs(mod(uv.y*scale.y,1.0)-0.5));outputColor=vec4(vec3(smoothstep(0.0,lineWidth,grid)),inputColor.a);}",Mr=class extends C{constructor({blendFunction:e=p.OVERLAY,scale:t=1,lineWidth:r=0}={}){super("GridEffect",Br,{blendFunction:e,uniforms:new Map([["scale",new i.Uniform$1(new i.Vector2)],["lineWidth",new i.Uniform$1(r)]])}),this.resolution=new i.Vector2,this.s=0,this.scale=t,this.l=0,this.lineWidth=r}get scale(){return this.s}set scale(e){this.s=Math.max(e,1e-6),this.setSize(this.resolution.width,this.resolution.height)}getScale(){return this.scale}setScale(e){this.scale=e}get lineWidth(){return this.l}set lineWidth(e){this.l=e,this.setSize(this.resolution.width,this.resolution.height)}getLineWidth(){return this.lineWidth}setLineWidth(e){this.lineWidth=e}setSize(e,t){this.resolution.set(e,t);const r=e/t,a=this.scale*(t*.125);this.uniforms.get("scale").value.set(r*a,a),this.uniforms.get("lineWidth").value=a/t+this.lineWidth}},Ur="uniform vec3 hue;uniform float saturation;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec3 color=vec3(dot(inputColor.rgb,hue.xyz),dot(inputColor.rgb,hue.zxy),dot(inputColor.rgb,hue.yzx));float average=(color.r+color.g+color.b)/3.0;vec3 diff=average-color;if(saturation>0.0){color+=diff*(1.0-1.0/(1.001-saturation));}else{color+=diff*-saturation;}outputColor=vec4(min(color,1.0),inputColor.a);}",Pr=class extends C{constructor({blendFunction:e=p.SRC,hue:t=0,saturation:r=0}={}){super("HueSaturationEffect",Ur,{blendFunction:e,uniforms:new Map([["hue",new i.Uniform$1(new i.Vector3)],["saturation",new i.Uniform$1(r)]])}),this.hue=t}get saturation(){return this.uniforms.get("saturation").value}set saturation(e){this.uniforms.get("saturation").value=e}getSaturation(){return this.saturation}setSaturation(e){this.saturation=e}get hue(){const e=this.uniforms.get("hue").value;return Math.acos((e.x*3-1)/2)}set hue(e){const t=Math.sin(e),r=Math.cos(e);this.uniforms.get("hue").value.set((2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3)}getHue(){return this.hue}setHue(e){this.hue=e}},Ir="uniform vec2 distortion;uniform vec2 principalPoint;uniform vec2 focalLength;uniform float skew;float mask(const in vec2 uv){return float(uv.s>=0.0&&uv.s<=1.0&&uv.t>=0.0&&uv.t<=1.0);}void mainUv(inout vec2 uv){vec2 xn=2.0*(uv.st-0.5);vec3 xDistorted=vec3((1.0+distortion*dot(xn,xn))*xn,1.0);mat3 kk=mat3(vec3(focalLength.x,0.0,0.0),vec3(skew*focalLength.x,focalLength.y,0.0),vec3(principalPoint.x,principalPoint.y,1.0));uv=(kk*xDistorted).xy*0.5+0.5;}void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){outputColor=mask(uv)*inputColor;}",Rr=class extends C{constructor({distortion:e=new i.Vector2(0,0),principalPoint:t=new i.Vector2(0,0),focalLength:r=new i.Vector2(1,1),skew:a=0}={}){super("LensDistortionEffect",Ir,{uniforms:new Map([["distortion",new i.Uniform$1(e)],["principalPoint",new i.Uniform$1(t)],["focalLength",new i.Uniform$1(r)],["skew",new i.Uniform$1(a)]])})}get distortion(){return this.uniforms.get("distortion").value}set distortion(e){this.uniforms.get("distortion").value=e}get principalPoint(){return this.uniforms.get("principalPoint").value}set principalPoint(e){this.uniforms.get("principalPoint").value=e}get focalLength(){return this.uniforms.get("focalLength").value}set focalLength(e){this.uniforms.get("focalLength").value=e}get skew(){return this.uniforms.get("skew").value}set skew(e){this.uniforms.get("skew").value=e}},br=`#ifdef LUT_PRECISION_HIGH
|
|
261
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
262
|
-
uniform highp sampler2D lut;
|
|
263
|
-
#else
|
|
264
|
-
uniform mediump sampler2D lut;
|
|
265
|
-
#endif
|
|
266
|
-
#else
|
|
267
|
-
uniform lowp sampler2D lut;
|
|
268
|
-
#endif
|
|
269
|
-
void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){outputColor=vec4(texture2D(lut,vec2(inputColor.r,0.5)).r,texture2D(lut,vec2(inputColor.g,0.5)).r,texture2D(lut,vec2(inputColor.b,0.5)).r,inputColor.a);}`,Fr=class extends C{constructor(e,{blendFunction:t=p.SRC}={}){super("LUT1DEffect",br,{blendFunction:t,uniforms:new Map([["lut",new i.Uniform$1(null)]])}),this.lut=e}get lut(){return this.uniforms.get("lut").value}set lut(e){this.uniforms.get("lut").value=e,e!==null&&(e.type===i.FloatType||e.type===i.HalfFloatType)&&this.defines.set("LUT_PRECISION_HIGH","1")}},St={SCALE_UP:"lut.scaleup"};function Je(e,t,r){const a=document.createElement("canvas"),s=a.getContext("2d");if(a.width=e,a.height=t,r instanceof Image)s.drawImage(r,0,0);else{const o=s.createImageData(e,t);o.data.set(r),s.putImageData(o,0,0)}return a}var Y=class Ct{constructor(t=0,r=0,a=null){this.width=t,this.height=r,this.data=a}toCanvas(){return typeof document>"u"?null:Je(this.width,this.height,this.data)}static from(t){const{width:r,height:a}=t;let s;if(t instanceof Image){const o=Je(r,a,t);o!==null&&(s=o.getContext("2d").getImageData(0,0,r,a).data)}else s=t.data;return new Ct(r,a,s)}},Lr=`"use strict";(()=>{var O={SCALE_UP:"lut.scaleup"};var _=[new Float32Array(3),new Float32Array(3)],n=[new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array(3)],Z=[[new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,0,1]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([1,0,1]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([0,1,1]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([0,1,1]),new Float32Array([1,1,1])]];function d(a,t,r,m){let i=r[0]-t[0],e=r[1]-t[1],y=r[2]-t[2],h=a[0]-t[0],A=a[1]-t[1],w=a[2]-t[2],c=e*w-y*A,l=y*h-i*w,x=i*A-e*h,u=Math.sqrt(c*c+l*l+x*x),b=u*.5,s=c/u,F=l/u,f=x/u,p=-(a[0]*s+a[1]*F+a[2]*f),M=m[0]*s+m[1]*F+m[2]*f;return Math.abs(M+p)*b/3}function V(a,t,r,m,i,e){let y=(r+m*t+i*t*t)*4;e[0]=a[y+0],e[1]=a[y+1],e[2]=a[y+2]}function k(a,t,r,m,i,e){let y=r*(t-1),h=m*(t-1),A=i*(t-1),w=Math.floor(y),c=Math.floor(h),l=Math.floor(A),x=Math.ceil(y),u=Math.ceil(h),b=Math.ceil(A),s=y-w,F=h-c,f=A-l;if(w===y&&c===h&&l===A)V(a,t,y,h,A,e);else{let p;s>=F&&F>=f?p=Z[0]:s>=f&&f>=F?p=Z[1]:f>=s&&s>=F?p=Z[2]:F>=s&&s>=f?p=Z[3]:F>=f&&f>=s?p=Z[4]:f>=F&&F>=s&&(p=Z[5]);let[M,g,X,Y]=p,P=_[0];P[0]=s,P[1]=F,P[2]=f;let o=_[1],L=x-w,S=u-c,U=b-l;o[0]=L*M[0]+w,o[1]=S*M[1]+c,o[2]=U*M[2]+l,V(a,t,o[0],o[1],o[2],n[0]),o[0]=L*g[0]+w,o[1]=S*g[1]+c,o[2]=U*g[2]+l,V(a,t,o[0],o[1],o[2],n[1]),o[0]=L*X[0]+w,o[1]=S*X[1]+c,o[2]=U*X[2]+l,V(a,t,o[0],o[1],o[2],n[2]),o[0]=L*Y[0]+w,o[1]=S*Y[1]+c,o[2]=U*Y[2]+l,V(a,t,o[0],o[1],o[2],n[3]);let T=d(g,X,Y,P)*6,q=d(M,X,Y,P)*6,C=d(M,g,Y,P)*6,E=d(M,g,X,P)*6;n[0][0]*=T,n[0][1]*=T,n[0][2]*=T,n[1][0]*=q,n[1][1]*=q,n[1][2]*=q,n[2][0]*=C,n[2][1]*=C,n[2][2]*=C,n[3][0]*=E,n[3][1]*=E,n[3][2]*=E,e[0]=n[0][0]+n[1][0]+n[2][0]+n[3][0],e[1]=n[0][1]+n[1][1]+n[2][1]+n[3][1],e[2]=n[0][2]+n[1][2]+n[2][2]+n[3][2]}}var v=class{static expand(t,r){let m=Math.cbrt(t.length/4),i=new Float32Array(3),e=new t.constructor(r**3*4),y=t instanceof Uint8Array?255:1,h=r**2,A=1/(r-1);for(let w=0;w<r;++w)for(let c=0;c<r;++c)for(let l=0;l<r;++l){let x=l*A,u=c*A,b=w*A,s=Math.round(l+c*r+w*h)*4;k(t,m,x,u,b,i),e[s+0]=i[0],e[s+1]=i[1],e[s+2]=i[2],e[s+3]=y}return e}};self.addEventListener("message",a=>{let t=a.data,r=t.data;switch(t.operation){case O.SCALE_UP:r=v.expand(r,t.size);break}postMessage(r,[r.buffer]),close()});})();
|
|
270
|
-
`,qe=new i.Color,de=class we extends i.Data3DTexture{constructor(t,r){super(t,r,r,r),this.type=i.FloatType,this.format=i.RGBAFormat,this.minFilter=i.LinearFilter,this.magFilter=i.LinearFilter,this.wrapS=i.ClampToEdgeWrapping,this.wrapT=i.ClampToEdgeWrapping,this.wrapR=i.ClampToEdgeWrapping,this.unpackAlignment=1,this.needsUpdate=!0,this.colorSpace=i.LinearSRGBColorSpace,this.domainMin=new i.Vector3(0,0,0),this.domainMax=new i.Vector3(1,1,1)}get isLookupTexture3D(){return!0}scaleUp(t,r=!0){const a=this.image;let s;return t<=a.width?s=Promise.reject(new Error("The target size must be greater than the current size")):s=new Promise((o,n)=>{const l=URL.createObjectURL(new Blob([Lr],{type:"text/javascript"})),u=new Worker(l);u.addEventListener("error",f=>n(f.error)),u.addEventListener("message",f=>{const h=new we(f.data,t);this.colorSpace=h.colorSpace,h.type=this.type,h.name=this.name,URL.revokeObjectURL(l),o(h)});const c=r?[a.data.buffer]:[];u.postMessage({operation:St.SCALE_UP,data:a.data,size:t},c)}),s}applyLUT(t){const r=this.image,a=t.image,s=Math.min(r.width,r.height,r.depth),o=Math.min(a.width,a.height,a.depth);if(s!==o)console.error("Size mismatch");else if(t.type!==i.FloatType||this.type!==i.FloatType)console.error("Both LUTs must be FloatType textures");else if(t.format!==i.RGBAFormat||this.format!==i.RGBAFormat)console.error("Both LUTs must be RGBA textures");else{const n=r.data,l=a.data,u=s,c=u**2,f=u-1;for(let h=0,d=u**3;h<d;++h){const v=h*4,g=n[v+0]*f,m=n[v+1]*f,T=n[v+2]*f,w=Math.round(g+m*u+T*c)*4;n[v+0]=l[w+0],n[v+1]=l[w+1],n[v+2]=l[w+2]}this.needsUpdate=!0}return this}convertToUint8(){if(this.type===i.FloatType){const t=this.image.data,r=new Uint8Array(t.length);for(let a=0,s=t.length;a<s;++a)r[a]=t[a]*255+.5;this.image.data=r,this.type=i.UnsignedByteType,this.needsUpdate=!0}return this}convertToFloat(){if(this.type===i.UnsignedByteType){const t=this.image.data,r=new Float32Array(t.length);for(let a=0,s=t.length;a<s;++a)r[a]=t[a]/255;this.image.data=r,this.type=i.FloatType,this.needsUpdate=!0}return this}convertToRGBA(){return console.warn("LookupTexture","convertToRGBA() is deprecated, LUTs are now RGBA by default"),this}convertLinearToSRGB(){const t=this.image.data;if(this.type===i.FloatType){for(let r=0,a=t.length;r<a;r+=4)qe.fromArray(t,r).convertLinearToSRGB().toArray(t,r);this.colorSpace=i.SRGBColorSpace,this.needsUpdate=!0}else console.error("Color space conversion requires FloatType data");return this}convertSRGBToLinear(){const t=this.image.data;if(this.type===i.FloatType){for(let r=0,a=t.length;r<a;r+=4)qe.fromArray(t,r).convertSRGBToLinear().toArray(t,r);this.colorSpace=i.LinearSRGBColorSpace,this.needsUpdate=!0}else console.error("Color space conversion requires FloatType data");return this}toDataTexture(){const t=this.image.width,r=this.image.height*this.image.depth,a=new i.DataTexture(this.image.data,t,r);return a.name=this.name,a.type=this.type,a.format=this.format,a.minFilter=i.LinearFilter,a.magFilter=i.LinearFilter,a.wrapS=this.wrapS,a.wrapT=this.wrapT,a.generateMipmaps=!1,a.needsUpdate=!0,this.colorSpace=a.colorSpace,a}static from(t){const r=t.image,{width:a,height:s}=r,o=Math.min(a,s);let n;if(r instanceof Image){const c=Y.from(r).data;if(a>s){n=new Uint8Array(c.length);for(let f=0;f<o;++f)for(let h=0;h<o;++h)for(let d=0;d<o;++d){const v=(d+f*o+h*o*o)*4,g=(d+h*o+f*o*o)*4;n[g+0]=c[v+0],n[g+1]=c[v+1],n[g+2]=c[v+2],n[g+3]=c[v+3]}}else n=new Uint8Array(c.buffer)}else n=r.data.slice();const l=new we(n,o);return l.type=t.type,l.name=t.name,t.colorSpace=l.colorSpace,l}static createNeutral(t){const r=new Float32Array(t**3*4),a=t**2,s=1/(t-1);for(let n=0;n<t;++n)for(let l=0;l<t;++l)for(let u=0;u<t;++u){const c=(n+l*t+u*a)*4;r[c+0]=n*s,r[c+1]=l*s,r[c+2]=u*s,r[c+3]=1}const o=new we(r,t);return o.name="neutral",o}},Or=`uniform vec3 scale;uniform vec3 offset;
|
|
271
|
-
#ifdef CUSTOM_INPUT_DOMAIN
|
|
272
|
-
uniform vec3 domainMin;uniform vec3 domainMax;
|
|
273
|
-
#endif
|
|
274
|
-
#ifdef LUT_3D
|
|
275
|
-
#ifdef LUT_PRECISION_HIGH
|
|
276
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
277
|
-
uniform highp sampler3D lut;
|
|
278
|
-
#else
|
|
279
|
-
uniform mediump sampler3D lut;
|
|
280
|
-
#endif
|
|
281
|
-
#else
|
|
282
|
-
uniform lowp sampler3D lut;
|
|
283
|
-
#endif
|
|
284
|
-
vec4 applyLUT(const in vec3 rgb){
|
|
285
|
-
#ifdef TETRAHEDRAL_INTERPOLATION
|
|
286
|
-
vec3 p=floor(rgb);vec3 f=rgb-p;vec3 v1=(p+0.5)*LUT_TEXEL_WIDTH;vec3 v4=(p+1.5)*LUT_TEXEL_WIDTH;vec3 v2,v3;vec3 frac;if(f.r>=f.g){if(f.g>f.b){frac=f.rgb;v2=vec3(v4.x,v1.y,v1.z);v3=vec3(v4.x,v4.y,v1.z);}else if(f.r>=f.b){frac=f.rbg;v2=vec3(v4.x,v1.y,v1.z);v3=vec3(v4.x,v1.y,v4.z);}else{frac=f.brg;v2=vec3(v1.x,v1.y,v4.z);v3=vec3(v4.x,v1.y,v4.z);}}else{if(f.b>f.g){frac=f.bgr;v2=vec3(v1.x,v1.y,v4.z);v3=vec3(v1.x,v4.y,v4.z);}else if(f.r>=f.b){frac=f.grb;v2=vec3(v1.x,v4.y,v1.z);v3=vec3(v4.x,v4.y,v1.z);}else{frac=f.gbr;v2=vec3(v1.x,v4.y,v1.z);v3=vec3(v1.x,v4.y,v4.z);}}vec4 n1=texture(lut,v1);vec4 n2=texture(lut,v2);vec4 n3=texture(lut,v3);vec4 n4=texture(lut,v4);vec4 weights=vec4(1.0-frac.x,frac.x-frac.y,frac.y-frac.z,frac.z);vec4 result=weights*mat4(vec4(n1.r,n2.r,n3.r,n4.r),vec4(n1.g,n2.g,n3.g,n4.g),vec4(n1.b,n2.b,n3.b,n4.b),vec4(1.0));return vec4(result.rgb,1.0);
|
|
287
|
-
#else
|
|
288
|
-
return texture(lut,rgb);
|
|
289
|
-
#endif
|
|
290
|
-
}
|
|
291
|
-
#else
|
|
292
|
-
#ifdef LUT_PRECISION_HIGH
|
|
293
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
294
|
-
uniform highp sampler2D lut;
|
|
295
|
-
#else
|
|
296
|
-
uniform mediump sampler2D lut;
|
|
297
|
-
#endif
|
|
298
|
-
#else
|
|
299
|
-
uniform lowp sampler2D lut;
|
|
300
|
-
#endif
|
|
301
|
-
vec4 applyLUT(const in vec3 rgb){float slice=rgb.b*LUT_SIZE;float slice0=floor(slice);float interp=slice-slice0;float centeredInterp=interp-0.5;float slice1=slice0+sign(centeredInterp);
|
|
302
|
-
#ifdef LUT_STRIP_HORIZONTAL
|
|
303
|
-
float xOffset=clamp(rgb.r*LUT_TEXEL_HEIGHT,LUT_TEXEL_WIDTH*0.5,LUT_TEXEL_HEIGHT-LUT_TEXEL_WIDTH*0.5);vec2 uv0=vec2(slice0*LUT_TEXEL_HEIGHT+xOffset,rgb.g);vec2 uv1=vec2(slice1*LUT_TEXEL_HEIGHT+xOffset,rgb.g);
|
|
304
|
-
#else
|
|
305
|
-
float yOffset=clamp(rgb.g*LUT_TEXEL_WIDTH,LUT_TEXEL_HEIGHT*0.5,LUT_TEXEL_WIDTH-LUT_TEXEL_HEIGHT*0.5);vec2 uv0=vec2(rgb.r,slice0*LUT_TEXEL_WIDTH+yOffset);vec2 uv1=vec2(rgb.r,slice1*LUT_TEXEL_WIDTH+yOffset);
|
|
306
|
-
#endif
|
|
307
|
-
vec4 sample0=texture2D(lut,uv0);vec4 sample1=texture2D(lut,uv1);return mix(sample0,sample1,abs(centeredInterp));}
|
|
308
|
-
#endif
|
|
309
|
-
void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec3 c=inputColor.rgb;
|
|
310
|
-
#ifdef CUSTOM_INPUT_DOMAIN
|
|
311
|
-
if(c.r>=domainMin.r&&c.g>=domainMin.g&&c.b>=domainMin.b&&c.r<=domainMax.r&&c.g<=domainMax.g&&c.b<=domainMax.b){c=applyLUT(scale*c+offset).rgb;}else{c=inputColor.rgb;}
|
|
312
|
-
#else
|
|
313
|
-
#if !defined(LUT_3D) || defined(TETRAHEDRAL_INTERPOLATION)
|
|
314
|
-
c=clamp(c,0.0,1.0);
|
|
315
|
-
#endif
|
|
316
|
-
c=applyLUT(scale*c+offset).rgb;
|
|
317
|
-
#endif
|
|
318
|
-
outputColor=vec4(c,inputColor.a);}`,_e=class extends C{constructor(e,{blendFunction:t=p.SRC,tetrahedralInterpolation:r=!1,inputColorSpace:a=i.SRGBColorSpace}={}){super("LUT3DEffect",Or,{blendFunction:t,uniforms:new Map([["lut",new i.Uniform$1(null)],["scale",new i.Uniform$1(new i.Vector3)],["offset",new i.Uniform$1(new i.Vector3)],["domainMin",new i.Uniform$1(null)],["domainMax",new i.Uniform$1(null)]])}),this.tetrahedralInterpolation=r,this.inputColorSpace=a,this.lut=e}get lut(){return this.uniforms.get("lut").value}set lut(e){const t=this.defines,r=this.uniforms;if(this.lut!==e&&(r.get("lut").value=e,e!==null)){const a=e.image,s=this.tetrahedralInterpolation;if(t.clear(),t.set("LUT_SIZE",Math.min(a.width,a.height).toFixed(16)),t.set("LUT_TEXEL_WIDTH",(1/a.width).toFixed(16)),t.set("LUT_TEXEL_HEIGHT",(1/a.height).toFixed(16)),r.get("domainMin").value=null,r.get("domainMax").value=null,(e.type===i.FloatType||e.type===i.HalfFloatType)&&t.set("LUT_PRECISION_HIGH","1"),a.width>a.height?t.set("LUT_STRIP_HORIZONTAL","1"):e instanceof i.Data3DTexture&&t.set("LUT_3D","1"),e instanceof de){const o=e.domainMin,n=e.domainMax;(o.x!==0||o.y!==0||o.z!==0||n.x!==1||n.y!==1||n.z!==1)&&(t.set("CUSTOM_INPUT_DOMAIN","1"),r.get("domainMin").value=o.clone(),r.get("domainMax").value=n.clone())}this.tetrahedralInterpolation=s}}getLUT(){return this.lut}setLUT(e){this.lut=e}updateScaleOffset(){const e=this.lut;if(e!==null){const t=Math.min(e.image.width,e.image.height),r=this.uniforms.get("scale").value,a=this.uniforms.get("offset").value;if(this.tetrahedralInterpolation&&e instanceof i.Data3DTexture)if(this.defines.has("CUSTOM_INPUT_DOMAIN")){const s=e.domainMax.clone().sub(e.domainMin);r.setScalar(t-1).divide(s),a.copy(e.domainMin).negate().multiply(r)}else r.setScalar(t-1),a.setScalar(0);else if(this.defines.has("CUSTOM_INPUT_DOMAIN")){const s=e.domainMax.clone().sub(e.domainMin).multiplyScalar(t);r.setScalar(t-1).divide(s),a.copy(e.domainMin).negate().multiply(r).addScalar(1/(2*t))}else r.setScalar((t-1)/t),a.setScalar(1/(2*t))}}configureTetrahedralInterpolation(){const e=this.lut;e!==null&&(e.minFilter=i.LinearFilter,e.magFilter=i.LinearFilter,this.tetrahedralInterpolation&&(e instanceof i.Data3DTexture?(e.minFilter=i.NearestFilter,e.magFilter=i.NearestFilter):console.warn("Tetrahedral interpolation requires a 3D texture")),e.needsUpdate=!0)}get tetrahedralInterpolation(){return this.defines.has("TETRAHEDRAL_INTERPOLATION")}set tetrahedralInterpolation(e){e?this.defines.set("TETRAHEDRAL_INTERPOLATION","1"):this.defines.delete("TETRAHEDRAL_INTERPOLATION"),this.configureTetrahedralInterpolation(),this.updateScaleOffset(),this.setChanged()}setTetrahedralInterpolationEnabled(e){this.tetrahedralInterpolation=e}},oe={FULL:0,SINGLE:1},Ye={DEPTH:0,LUMA:1,COLOR:2},Et={DISABLED:0,DEPTH:1,CUSTOM:2},se={LOW:0,MEDIUM:1,HIGH:2,ULTRA:3},L={LINEAR:0,REINHARD:1,REINHARD2:2,REINHARD2_ADAPTIVE:3,UNCHARTED2:4,OPTIMIZED_CINEON:5,CINEON:5,ACES_FILMIC:6,AGX:7,NEUTRAL:8},ne={DEFAULT:0,ESKIL:1},Nr={DERIVATIVES:"derivatives",FRAG_DEPTH:"fragDepth",DRAW_BUFFERS:"drawBuffers",SHADER_TEXTURE_LOD:"shaderTextureLOD"},Hr=`void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec3 noise=vec3(rand(uv*(1.0+time)));
|
|
319
|
-
#ifdef PREMULTIPLY
|
|
320
|
-
outputColor=vec4(min(inputColor.rgb*noise,vec3(1.0)),inputColor.a);
|
|
321
|
-
#else
|
|
322
|
-
outputColor=vec4(noise,inputColor.a);
|
|
323
|
-
#endif
|
|
324
|
-
}`,Gr=class extends C{constructor({blendFunction:e=p.SCREEN,premultiply:t=!1}={}){super("NoiseEffect",Hr,{blendFunction:e}),this.premultiply=t}get premultiply(){return this.defines.has("PREMULTIPLY")}set premultiply(e){this.premultiply!==e&&(e?this.defines.set("PREMULTIPLY","1"):this.defines.delete("PREMULTIPLY"),this.setChanged())}isPremultiplied(){return this.premultiply}setPremultiplied(e){this.premultiply=e}},zr=`#include <packing>
|
|
325
|
-
#include <clipping_planes_pars_fragment>
|
|
326
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
327
|
-
uniform highp sampler2D depthBuffer;
|
|
328
|
-
#else
|
|
329
|
-
uniform mediump sampler2D depthBuffer;
|
|
330
|
-
#endif
|
|
331
|
-
uniform float cameraNear;uniform float cameraFar;centroid varying float vViewZ;centroid varying vec4 vProjTexCoord;void main(){
|
|
332
|
-
#include <clipping_planes_fragment>
|
|
333
|
-
vec2 projTexCoord=(vProjTexCoord.xy/vProjTexCoord.w)*0.5+0.5;projTexCoord=clamp(projTexCoord,0.002,0.998);
|
|
334
|
-
#if DEPTH_PACKING == 3201
|
|
335
|
-
float fragCoordZ=unpackRGBAToDepth(texture2D(depthBuffer,projTexCoord));
|
|
336
|
-
#else
|
|
337
|
-
float fragCoordZ=texture2D(depthBuffer,projTexCoord).r;
|
|
338
|
-
#endif
|
|
339
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
340
|
-
float viewZ=perspectiveDepthToViewZ(fragCoordZ,cameraNear,cameraFar);
|
|
341
|
-
#else
|
|
342
|
-
float viewZ=orthographicDepthToViewZ(fragCoordZ,cameraNear,cameraFar);
|
|
343
|
-
#endif
|
|
344
|
-
float depthTest=(-vViewZ>-viewZ)?1.0:0.0;gl_FragColor.rg=vec2(0.0,depthTest);}`,kr=`#include <common>
|
|
345
|
-
#include <morphtarget_pars_vertex>
|
|
346
|
-
#include <skinning_pars_vertex>
|
|
347
|
-
#include <clipping_planes_pars_vertex>
|
|
348
|
-
varying float vViewZ;varying vec4 vProjTexCoord;void main(){
|
|
349
|
-
#include <skinbase_vertex>
|
|
350
|
-
#include <begin_vertex>
|
|
351
|
-
#include <morphtarget_vertex>
|
|
352
|
-
#include <skinning_vertex>
|
|
353
|
-
#include <project_vertex>
|
|
354
|
-
vViewZ=mvPosition.z;vProjTexCoord=gl_Position;
|
|
355
|
-
#include <clipping_planes_vertex>
|
|
356
|
-
}`,yt=class extends i.ShaderMaterial{constructor(e=null,t){super({name:"DepthComparisonMaterial",defines:{DEPTH_PACKING:"0"},uniforms:{depthBuffer:new i.Uniform$1(null),cameraNear:new i.Uniform$1(.3),cameraFar:new i.Uniform$1(1e3)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:zr,vertexShader:kr}),this.depthBuffer=e,this.depthPacking=i.RGBADepthPacking,this.copyCameraSettings(t)}set depthBuffer(e){this.uniforms.depthBuffer.value=e}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=i.RGBADepthPacking){this.depthBuffer=e,this.depthPacking=t}adoptCameraSettings(e){this.copyCameraSettings(e)}copyCameraSettings(e){e&&(this.uniforms.cameraNear.value=e.near,this.uniforms.cameraFar.value=e.far,e instanceof i.PerspectiveCamera?this.defines.PERSPECTIVE_CAMERA="1":delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}},Qr="uniform lowp sampler2D inputBuffer;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec2 c0=texture2D(inputBuffer,vUv0).rg;vec2 c1=texture2D(inputBuffer,vUv1).rg;vec2 c2=texture2D(inputBuffer,vUv2).rg;vec2 c3=texture2D(inputBuffer,vUv3).rg;float d0=(c0.x-c1.x)*0.5;float d1=(c2.x-c3.x)*0.5;float d=length(vec2(d0,d1));float a0=min(c0.y,c1.y);float a1=min(c2.y,c3.y);float visibilityFactor=min(a0,a1);gl_FragColor.rg=(1.0-visibilityFactor>0.001)?vec2(d,0.0):vec2(0.0,d);}",Vr="uniform vec2 texelSize;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec2 uv=position.xy*0.5+0.5;vUv0=vec2(uv.x+texelSize.x,uv.y);vUv1=vec2(uv.x-texelSize.x,uv.y);vUv2=vec2(uv.x,uv.y+texelSize.y);vUv3=vec2(uv.x,uv.y-texelSize.y);gl_Position=vec4(position.xy,1.0,1.0);}",Oe=class extends i.ShaderMaterial{constructor(e=new i.Vector2){super({name:"OutlineMaterial",uniforms:{inputBuffer:new i.Uniform$1(null),texelSize:new i.Uniform$1(new i.Vector2)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Qr,vertexShader:Vr}),this.uniforms.texelSize.value.set(e.x,e.y),this.uniforms.maskTexture=this.uniforms.inputBuffer}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}setTexelSize(e,t){this.uniforms.texelSize.value.set(e,t)}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},Ke=class extends M{constructor(e,t,{renderTarget:r,resolutionScale:a=1,width:s=A.AUTO_SIZE,height:o=A.AUTO_SIZE,resolutionX:n=s,resolutionY:l=o}={}){super("DepthPass"),this.needsSwap=!1,this.renderPass=new pe(e,t,new i.MeshDepthMaterial({depthPacking:i.RGBADepthPacking}));const u=this.renderPass;u.skipShadowMapUpdate=!0,u.ignoreBackground=!0;const c=u.clearPass;c.overrideClearColor=new i.Color(16777215),c.overrideClearAlpha=1,this.renderTarget=r,this.renderTarget===void 0&&(this.renderTarget=new i.WebGLRenderTarget(1,1,{minFilter:i.NearestFilter,magFilter:i.NearestFilter}),this.renderTarget.texture.name="DepthPass.Target");const f=this.resolution=new A(this,n,l,a);f.addEventListener("change",h=>this.setSize(f.baseWidth,f.baseHeight))}set mainScene(e){this.renderPass.mainScene=e}set mainCamera(e){this.renderPass.mainCamera=e}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}getResolution(){return this.resolution}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}render(e,t,r,a,s){const o=this.renderToScreen?null:this.renderTarget;this.renderPass.render(e,o)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t),this.renderTarget.setSize(r.width,r.height)}},Wr=`uniform lowp sampler2D edgeTexture;uniform lowp sampler2D maskTexture;uniform vec3 visibleEdgeColor;uniform vec3 hiddenEdgeColor;uniform float pulse;uniform float edgeStrength;
|
|
357
|
-
#ifdef USE_PATTERN
|
|
358
|
-
uniform lowp sampler2D patternTexture;varying vec2 vUvPattern;
|
|
359
|
-
#endif
|
|
360
|
-
void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec2 edge=texture2D(edgeTexture,uv).rg;vec2 mask=texture2D(maskTexture,uv).rg;
|
|
361
|
-
#ifndef X_RAY
|
|
362
|
-
edge.y=0.0;
|
|
363
|
-
#endif
|
|
364
|
-
edge*=(edgeStrength*mask.x*pulse);vec3 color=edge.x*visibleEdgeColor+edge.y*hiddenEdgeColor;float visibilityFactor=0.0;
|
|
365
|
-
#ifdef USE_PATTERN
|
|
366
|
-
vec4 patternColor=texture2D(patternTexture,vUvPattern);
|
|
367
|
-
#ifdef X_RAY
|
|
368
|
-
float hiddenFactor=0.5;
|
|
369
|
-
#else
|
|
370
|
-
float hiddenFactor=0.0;
|
|
371
|
-
#endif
|
|
372
|
-
visibilityFactor=(1.0-mask.y>0.0)?1.0:hiddenFactor;visibilityFactor*=(1.0-mask.x)*patternColor.a;color+=visibilityFactor*patternColor.rgb;
|
|
373
|
-
#endif
|
|
374
|
-
float alpha=max(max(edge.x,edge.y),visibilityFactor);
|
|
375
|
-
#ifdef ALPHA
|
|
376
|
-
outputColor=vec4(color,alpha);
|
|
377
|
-
#else
|
|
378
|
-
outputColor=vec4(color,max(alpha,inputColor.a));
|
|
379
|
-
#endif
|
|
380
|
-
}`,Yr="uniform float patternScale;varying vec2 vUvPattern;void mainSupport(const in vec2 uv){vUvPattern=uv*vec2(aspect,1.0)*patternScale;}",Kr=class extends C{constructor(e,t,{blendFunction:r=p.SCREEN,patternTexture:a=null,patternScale:s=1,edgeStrength:o=1,pulseSpeed:n=0,visibleEdgeColor:l=16777215,hiddenEdgeColor:u=2230538,kernelSize:c=G.VERY_SMALL,blur:f=!1,xRay:h=!0,multisampling:d=0,resolutionScale:v=.5,width:g=A.AUTO_SIZE,height:m=A.AUTO_SIZE,resolutionX:T=g,resolutionY:w=m}={}){super("OutlineEffect",Wr,{uniforms:new Map([["maskTexture",new i.Uniform$1(null)],["edgeTexture",new i.Uniform$1(null)],["edgeStrength",new i.Uniform$1(o)],["visibleEdgeColor",new i.Uniform$1(new i.Color(l))],["hiddenEdgeColor",new i.Uniform$1(new i.Color(u))],["pulse",new i.Uniform$1(1)],["patternScale",new i.Uniform$1(s)],["patternTexture",new i.Uniform$1(null)]])}),this.blendMode.addEventListener("change",H=>{this.blendMode.blendFunction===p.ALPHA?this.defines.set("ALPHA","1"):this.defines.delete("ALPHA"),this.setChanged()}),this.blendMode.blendFunction=r,this.patternTexture=a,this.xRay=h,this.scene=e,this.camera=t,this.renderTargetMask=new i.WebGLRenderTarget(1,1),this.renderTargetMask.samples=d,this.renderTargetMask.texture.name="Outline.Mask",this.uniforms.get("maskTexture").value=this.renderTargetMask.texture,this.renderTargetOutline=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTargetOutline.texture.name="Outline.Edges",this.uniforms.get("edgeTexture").value=this.renderTargetOutline.texture,this.clearPass=new _,this.clearPass.overrideClearColor=new i.Color(0),this.clearPass.overrideClearAlpha=1,this.depthPass=new Ke(e,t),this.maskPass=new pe(e,t,new yt(this.depthPass.texture,t));const D=this.maskPass.clearPass;D.overrideClearColor=new i.Color(16777215),D.overrideClearAlpha=1,this.blurPass=new q({resolutionScale:v,resolutionX:T,resolutionY:w,kernelSize:c}),this.blurPass.enabled=f;const x=this.blurPass.resolution;x.addEventListener("change",H=>this.setSize(x.baseWidth,x.baseHeight)),this.outlinePass=new O(new Oe);const R=this.outlinePass.fullscreenMaterial;R.inputBuffer=this.renderTargetMask.texture,this.time=0,this.forceUpdate=!0,this.selection=new ke,this.pulseSpeed=n}set mainScene(e){this.scene=e,this.depthPass.mainScene=e,this.maskPass.mainScene=e}set mainCamera(e){this.camera=e,this.depthPass.mainCamera=e,this.maskPass.mainCamera=e,this.maskPass.overrideMaterial.copyCameraSettings(e)}get resolution(){return this.blurPass.resolution}getResolution(){return this.blurPass.getResolution()}get multisampling(){return this.renderTargetMask.samples}set multisampling(e){this.renderTargetMask.samples=e,this.renderTargetMask.dispose()}get patternScale(){return this.uniforms.get("patternScale").value}set patternScale(e){this.uniforms.get("patternScale").value=e}get edgeStrength(){return this.uniforms.get("edgeStrength").value}set edgeStrength(e){this.uniforms.get("edgeStrength").value=e}get visibleEdgeColor(){return this.uniforms.get("visibleEdgeColor").value}set visibleEdgeColor(e){this.uniforms.get("visibleEdgeColor").value=e}get hiddenEdgeColor(){return this.uniforms.get("hiddenEdgeColor").value}set hiddenEdgeColor(e){this.uniforms.get("hiddenEdgeColor").value=e}getBlurPass(){return this.blurPass}getSelection(){return this.selection}getPulseSpeed(){return this.pulseSpeed}setPulseSpeed(e){this.pulseSpeed=e}get width(){return this.resolution.width}set width(e){this.resolution.preferredWidth=e}get height(){return this.resolution.height}set height(e){this.resolution.preferredHeight=e}get selectionLayer(){return this.selection.layer}set selectionLayer(e){this.selection.layer=e}get dithering(){return this.blurPass.dithering}set dithering(e){this.blurPass.dithering=e}get kernelSize(){return this.blurPass.kernelSize}set kernelSize(e){this.blurPass.kernelSize=e}get blur(){return this.blurPass.enabled}set blur(e){this.blurPass.enabled=e}get xRay(){return this.defines.has("X_RAY")}set xRay(e){this.xRay!==e&&(e?this.defines.set("X_RAY","1"):this.defines.delete("X_RAY"),this.setChanged())}isXRayEnabled(){return this.xRay}setXRayEnabled(e){this.xRay=e}get patternTexture(){return this.uniforms.get("patternTexture").value}set patternTexture(e){e!==null?(e.wrapS=e.wrapT=i.RepeatWrapping,this.defines.set("USE_PATTERN","1"),this.setVertexShader(Yr)):(this.defines.delete("USE_PATTERN"),this.setVertexShader(null)),this.uniforms.get("patternTexture").value=e,this.setChanged()}setPatternTexture(e){this.patternTexture=e}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}setSelection(e){return this.selection.set(e),this}clearSelection(){return this.selection.clear(),this}selectObject(e){return this.selection.add(e),this}deselectObject(e){return this.selection.delete(e),this}update(e,t,r){const a=this.scene,s=this.camera,o=this.selection,l=this.uniforms.get("pulse"),u=a.background,c=s.layers.mask;(this.forceUpdate||o.size>0)&&(a.background=null,l.value=1,this.pulseSpeed>0&&(l.value=Math.cos(this.time*this.pulseSpeed*10)*.375+.625),this.time+=r,o.setVisible(!1),this.depthPass.render(e),o.setVisible(!0),s.layers.set(o.layer),this.maskPass.render(e,this.renderTargetMask),s.layers.mask=c,a.background=u,this.outlinePass.render(e,null,this.renderTargetOutline),this.blurPass.enabled&&this.blurPass.render(e,this.renderTargetOutline,this.renderTargetOutline)),this.forceUpdate=o.size>0}setSize(e,t){this.blurPass.setSize(e,t),this.renderTargetMask.setSize(e,t);const r=this.resolution;r.setBaseSize(e,t);const a=r.width,s=r.height;this.depthPass.setSize(a,s),this.renderTargetOutline.setSize(a,s),this.outlinePass.fullscreenMaterial.setSize(a,s)}initialize(e,t,r){this.blurPass.initialize(e,t,i.UnsignedByteType),r!==void 0&&(this.depthPass.initialize(e,t,r),this.maskPass.initialize(e,t,r),this.outlinePass.initialize(e,t,r))}},Xr="uniform bool active;uniform vec4 d;void mainUv(inout vec2 uv){if(active){uv=d.xy*(floor(uv*d.zw)+0.5);}}",Zr=class extends C{constructor(e=30){super("PixelationEffect",Xr,{uniforms:new Map([["active",new i.Uniform$1(!1)],["d",new i.Uniform$1(new i.Vector4)]])}),this.resolution=new i.Vector2,this._granularity=0,this.granularity=e}get granularity(){return this._granularity}set granularity(e){let t=Math.floor(e);t%2>0&&(t+=1),this._granularity=t,this.uniforms.get("active").value=t>0,this.setSize(this.resolution.width,this.resolution.height)}getGranularity(){return this.granularity}setGranularity(e){this.granularity=e}setSize(e,t){const r=this.resolution;r.set(e,t);const a=this.granularity,s=a/r.x,o=a/r.y;this.uniforms.get("d").value.set(s,o,1/s,1/o)}},jr=`uniform float focus;uniform float focalLength;uniform float fStop;uniform float maxBlur;uniform float luminanceThreshold;uniform float luminanceGain;uniform float bias;uniform float fringe;
|
|
381
|
-
#ifdef MANUAL_DOF
|
|
382
|
-
uniform vec4 dof;
|
|
383
|
-
#endif
|
|
384
|
-
#ifdef PENTAGON
|
|
385
|
-
float pentagon(const in vec2 coords){const vec4 HS0=vec4(1.0,0.0,0.0,1.0);const vec4 HS1=vec4(0.309016994,0.951056516,0.0,1.0);const vec4 HS2=vec4(-0.809016994,0.587785252,0.0,1.0);const vec4 HS3=vec4(-0.809016994,-0.587785252,0.0,1.0);const vec4 HS4=vec4(0.309016994,-0.951056516,0.0,1.0);const vec4 HS5=vec4(0.0,0.0,1.0,1.0);const vec4 ONE=vec4(1.0);const float P_FEATHER=0.4;const float N_FEATHER=-P_FEATHER;float inOrOut=-4.0;vec4 P=vec4(coords,vec2(RINGS_FLOAT-1.3));vec4 dist=vec4(dot(P,HS0),dot(P,HS1),dot(P,HS2),dot(P,HS3));dist=smoothstep(N_FEATHER,P_FEATHER,dist);inOrOut+=dot(dist,ONE);dist.x=dot(P,HS4);dist.y=HS5.w-abs(P.z);dist=smoothstep(N_FEATHER,P_FEATHER,dist);inOrOut+=dist.x;return clamp(inOrOut,0.0,1.0);}
|
|
386
|
-
#endif
|
|
387
|
-
vec3 processTexel(const in vec2 coords,const in float blur){vec2 scale=texelSize*fringe*blur;vec3 c=vec3(texture2D(inputBuffer,coords+vec2(0.0,1.0)*scale).r,texture2D(inputBuffer,coords+vec2(-0.866,-0.5)*scale).g,texture2D(inputBuffer,coords+vec2(0.866,-0.5)*scale).b);float luminance=linearToRelativeLuminance(c);float threshold=max((luminance-luminanceThreshold)*luminanceGain,0.0);return c+mix(vec3(0.0),c,threshold*blur);}float gather(const in float i,const in float j,const in float ringSamples,const in vec2 uv,const in vec2 blurFactor,const in float blur,inout vec3 color){float step=PI2/ringSamples;vec2 wh=vec2(cos(j*step)*i,sin(j*step)*i);
|
|
388
|
-
#ifdef PENTAGON
|
|
389
|
-
float p=pentagon(wh);
|
|
390
|
-
#else
|
|
391
|
-
float p=1.0;
|
|
392
|
-
#endif
|
|
393
|
-
color+=processTexel(wh*blurFactor+uv,blur)*mix(1.0,i/RINGS_FLOAT,bias)*p;return mix(1.0,i/RINGS_FLOAT,bias)*p;}void mainImage(const in vec4 inputColor,const in vec2 uv,const in float depth,out vec4 outputColor){
|
|
394
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
395
|
-
float viewZ=perspectiveDepthToViewZ(depth,cameraNear,cameraFar);float linearDepth=viewZToOrthographicDepth(viewZ,cameraNear,cameraFar);
|
|
396
|
-
#else
|
|
397
|
-
float linearDepth=depth;
|
|
398
|
-
#endif
|
|
399
|
-
#ifdef MANUAL_DOF
|
|
400
|
-
float focalPlane=linearDepth-focus;float farDoF=(focalPlane-dof.z)/dof.w;float nearDoF=(-focalPlane-dof.x)/dof.y;float blur=(focalPlane>0.0)?farDoF:nearDoF;
|
|
401
|
-
#else
|
|
402
|
-
const float CIRCLE_OF_CONFUSION=0.03;float focalPlaneMM=focus*1000.0;float depthMM=linearDepth*1000.0;float focalPlane=(depthMM*focalLength)/(depthMM-focalLength);float farDoF=(focalPlaneMM*focalLength)/(focalPlaneMM-focalLength);float nearDoF=(focalPlaneMM-focalLength)/(focalPlaneMM*fStop*CIRCLE_OF_CONFUSION);float blur=abs(focalPlane-farDoF)*nearDoF;
|
|
403
|
-
#endif
|
|
404
|
-
const int MAX_RING_SAMPLES=RINGS_INT*SAMPLES_INT;blur=clamp(blur,0.0,1.0);vec3 color=inputColor.rgb;if(blur>=0.05){vec2 blurFactor=blur*maxBlur*texelSize;float s=1.0;int ringSamples;for(int i=1;i<=RINGS_INT;i++){ringSamples=i*SAMPLES_INT;for(int j=0;j<MAX_RING_SAMPLES;j++){if(j>=ringSamples){break;}s+=gather(float(i),float(j),float(ringSamples),uv,blurFactor,blur,color);}}color/=s;}
|
|
405
|
-
#ifdef SHOW_FOCUS
|
|
406
|
-
float edge=0.002*linearDepth;float m=clamp(smoothstep(0.0,edge,blur),0.0,1.0);float e=clamp(smoothstep(1.0-edge,1.0,blur),0.0,1.0);color=mix(color,vec3(1.0,0.5,0.0),(1.0-m)*0.6);color=mix(color,vec3(0.0,0.5,1.0),((1.0-e)-(1.0-m))*0.2);
|
|
407
|
-
#endif
|
|
408
|
-
outputColor=vec4(color,inputColor.a);}`,Jr=class extends C{constructor({blendFunction:e,focus:t=1,focalLength:r=24,fStop:a=.9,luminanceThreshold:s=.5,luminanceGain:o=2,bias:n=.5,fringe:l=.7,maxBlur:u=1,rings:c=3,samples:f=2,showFocus:h=!1,manualDoF:d=!1,pentagon:v=!1}={}){super("RealisticBokehEffect",jr,{blendFunction:e,attributes:I.CONVOLUTION|I.DEPTH,uniforms:new Map([["focus",new i.Uniform$1(t)],["focalLength",new i.Uniform$1(r)],["fStop",new i.Uniform$1(a)],["luminanceThreshold",new i.Uniform$1(s)],["luminanceGain",new i.Uniform$1(o)],["bias",new i.Uniform$1(n)],["fringe",new i.Uniform$1(l)],["maxBlur",new i.Uniform$1(u)],["dof",new i.Uniform$1(null)]])}),this.rings=c,this.samples=f,this.showFocus=h,this.manualDoF=d,this.pentagon=v}get rings(){return Number.parseInt(this.defines.get("RINGS_INT"))}set rings(e){const t=Math.floor(e);this.defines.set("RINGS_INT",t.toFixed(0)),this.defines.set("RINGS_FLOAT",t.toFixed(1)),this.setChanged()}get samples(){return Number.parseInt(this.defines.get("SAMPLES_INT"))}set samples(e){const t=Math.floor(e);this.defines.set("SAMPLES_INT",t.toFixed(0)),this.defines.set("SAMPLES_FLOAT",t.toFixed(1)),this.setChanged()}get showFocus(){return this.defines.has("SHOW_FOCUS")}set showFocus(e){this.showFocus!==e&&(e?this.defines.set("SHOW_FOCUS","1"):this.defines.delete("SHOW_FOCUS"),this.setChanged())}get manualDoF(){return this.defines.has("MANUAL_DOF")}set manualDoF(e){this.manualDoF!==e&&(e?(this.defines.set("MANUAL_DOF","1"),this.uniforms.get("dof").value=new i.Vector4(.2,1,.2,2)):(this.defines.delete("MANUAL_DOF"),this.uniforms.get("dof").value=null),this.setChanged())}get pentagon(){return this.defines.has("PENTAGON")}set pentagon(e){this.pentagon!==e&&(e?this.defines.set("PENTAGON","1"):this.defines.delete("PENTAGON"),this.setChanged())}},qr=`uniform float count;
|
|
409
|
-
#ifdef SCROLL
|
|
410
|
-
uniform float scrollSpeed;
|
|
411
|
-
#endif
|
|
412
|
-
void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){float y=uv.y;
|
|
413
|
-
#ifdef SCROLL
|
|
414
|
-
y+=time*scrollSpeed;
|
|
415
|
-
#endif
|
|
416
|
-
vec2 sl=vec2(sin(y*count),cos(y*count));outputColor=vec4(sl.xyx,inputColor.a);}`,_r=class extends C{constructor({blendFunction:e=p.OVERLAY,density:t=1.25,scrollSpeed:r=0}={}){super("ScanlineEffect",qr,{blendFunction:e,uniforms:new Map([["count",new i.Uniform$1(0)],["scrollSpeed",new i.Uniform$1(0)]])}),this.resolution=new i.Vector2,this.d=t,this.scrollSpeed=r}get density(){return this.d}set density(e){this.d=e,this.setSize(this.resolution.width,this.resolution.height)}getDensity(){return this.density}setDensity(e){this.density=e}get scrollSpeed(){return this.uniforms.get("scrollSpeed").value}set scrollSpeed(e){this.uniforms.get("scrollSpeed").value=e,e===0?this.defines.delete("SCROLL")&&this.setChanged():this.defines.has("SCROLL")||(this.defines.set("SCROLL","1"),this.setChanged())}setSize(e,t){this.resolution.set(e,t),this.uniforms.get("count").value=Math.round(t*this.density)}},$r="uniform bool active;uniform vec2 center;uniform float waveSize;uniform float radius;uniform float maxRadius;uniform float amplitude;varying float vSize;void mainUv(inout vec2 uv){if(active){vec2 aspectCorrection=vec2(aspect,1.0);vec2 difference=uv*aspectCorrection-center*aspectCorrection;float distance=sqrt(dot(difference,difference))*vSize;if(distance>radius){if(distance<radius+waveSize){float angle=(distance-radius)*PI2/waveSize;float cosSin=(1.0-cos(angle))*0.5;float extent=maxRadius+waveSize;float decay=max(extent-distance*distance,0.0)/extent;uv-=((cosSin*amplitude*difference)/distance)*decay;}}}}",ea="uniform float size;uniform float cameraDistance;varying float vSize;void mainSupport(){vSize=(0.1*cameraDistance)/size;}",ta=Math.PI*.5,ce=new i.Vector3,$e=new i.Vector3,ia=class extends C{constructor(e,t=new i.Vector3,{speed:r=2,maxRadius:a=1,waveSize:s=.2,amplitude:o=.05}={}){super("ShockWaveEffect",$r,{vertexShader:ea,uniforms:new Map([["active",new i.Uniform$1(!1)],["center",new i.Uniform$1(new i.Vector2(.5,.5))],["cameraDistance",new i.Uniform$1(1)],["size",new i.Uniform$1(1)],["radius",new i.Uniform$1(-s)],["maxRadius",new i.Uniform$1(a)],["waveSize",new i.Uniform$1(s)],["amplitude",new i.Uniform$1(o)]])}),this.position=t,this.speed=r,this.camera=e,this.screenPosition=this.uniforms.get("center").value,this.time=0,this.active=!1}set mainCamera(e){this.camera=e}get amplitude(){return this.uniforms.get("amplitude").value}set amplitude(e){this.uniforms.get("amplitude").value=e}get waveSize(){return this.uniforms.get("waveSize").value}set waveSize(e){this.uniforms.get("waveSize").value=e}get maxRadius(){return this.uniforms.get("maxRadius").value}set maxRadius(e){this.uniforms.get("maxRadius").value=e}get epicenter(){return this.position}set epicenter(e){this.position=e}getPosition(){return this.position}setPosition(e){this.position=e}getSpeed(){return this.speed}setSpeed(e){this.speed=e}explode(){this.time=0,this.active=!0,this.uniforms.get("active").value=!0}update(e,t,r){const a=this.position,s=this.camera,o=this.uniforms,n=o.get("active");if(this.active){const l=o.get("waveSize").value;s.getWorldDirection(ce),$e.copy(s.position).sub(a),n.value=ce.angleTo($e)>ta,n.value&&(o.get("cameraDistance").value=s.position.distanceTo(a),ce.copy(a).project(s),this.screenPosition.set((ce.x+1)*.5,(ce.y+1)*.5)),this.time+=r*this.speed;const u=this.time-l;o.get("radius").value=u,u>=(o.get("maxRadius").value+l)*2&&(this.active=!1,n.value=!1)}}},ra=class extends xt{constructor(e,t,r){super(r),this.setAttributes(this.getAttributes()|I.DEPTH),this.camera=t,this.depthPass=new Ke(e,t),this.clearPass=new _(!0,!1,!1),this.clearPass.overrideClearColor=new i.Color(0),this.depthMaskPass=new O(new We);const a=this.depthMaskMaterial;a.copyCameraSettings(t),a.depthBuffer1=this.depthPass.texture,a.depthPacking1=i.RGBADepthPacking,a.depthMode=i.EqualDepth,this.renderTargetMasked=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTargetMasked.texture.name="Bloom.Masked",this.selection=new ke,this._inverted=!1,this._ignoreBackground=!1}set mainScene(e){this.depthPass.mainScene=e}set mainCamera(e){this.camera=e,this.depthPass.mainCamera=e,this.depthMaskMaterial.copyCameraSettings(e)}getSelection(){return this.selection}get depthMaskMaterial(){return this.depthMaskPass.fullscreenMaterial}get inverted(){return this._inverted}set inverted(e){this._inverted=e,this.depthMaskMaterial.depthMode=e?i.NotEqualDepth:i.EqualDepth}isInverted(){return this.inverted}setInverted(e){this.inverted=e}get ignoreBackground(){return this._ignoreBackground}set ignoreBackground(e){this._ignoreBackground=e,this.depthMaskMaterial.maxDepthStrategy=e?le.DISCARD_MAX_DEPTH:le.KEEP_MAX_DEPTH}isBackgroundDisabled(){return this.ignoreBackground}setBackgroundDisabled(e){this.ignoreBackground=e}setDepthTexture(e,t=i.BasicDepthPacking){this.depthMaskMaterial.depthBuffer0=e,this.depthMaskMaterial.depthPacking0=t}update(e,t,r){const a=this.camera,s=this.selection,o=this.inverted;let n=t;if(this.ignoreBackground||!o||s.size>0){const l=a.layers.mask;a.layers.set(s.layer),this.depthPass.render(e),a.layers.mask=l,n=this.renderTargetMasked,this.clearPass.render(e,n),this.depthMaskPass.render(e,t,n)}super.update(e,n,r)}setSize(e,t){super.setSize(e,t),this.renderTargetMasked.setSize(e,t),this.depthPass.setSize(e,t)}initialize(e,t,r){super.initialize(e,t,r),this.clearPass.initialize(e,t,r),this.depthPass.initialize(e,t,r),this.depthMaskPass.initialize(e,t,r),e!==null&&e.capabilities.logarithmicDepthBuffer&&(this.depthMaskPass.fullscreenMaterial.defines.LOG_DEPTH="1"),r!==void 0&&(this.renderTargetMasked.texture.type=r,e!==null&&e.outputColorSpace===i.SRGBColorSpace&&(this.renderTargetMasked.texture.colorSpace=i.SRGBColorSpace))}},aa="uniform vec3 weightsR;uniform vec3 weightsG;uniform vec3 weightsB;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec3 color=vec3(dot(inputColor.rgb,weightsR),dot(inputColor.rgb,weightsG),dot(inputColor.rgb,weightsB));outputColor=vec4(color,inputColor.a);}",sa=class extends C{constructor({blendFunction:e,intensity:t=1}={}){super("SepiaEffect",aa,{blendFunction:e,uniforms:new Map([["weightsR",new i.Uniform$1(new i.Vector3(.393,.769,.189))],["weightsG",new i.Uniform$1(new i.Vector3(.349,.686,.168))],["weightsB",new i.Uniform$1(new i.Vector3(.272,.534,.131))]])})}get intensity(){return this.blendMode.opacity.value}set intensity(e){this.blendMode.opacity.value=e}getIntensity(){return this.intensity}setIntensity(e){this.intensity=e}get weightsR(){return this.uniforms.get("weightsR").value}get weightsG(){return this.uniforms.get("weightsG").value}get weightsB(){return this.uniforms.get("weightsB").value}},na=`varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;
|
|
417
|
-
#if EDGE_DETECTION_MODE != 0
|
|
418
|
-
varying vec2 vUv2;varying vec2 vUv3;varying vec2 vUv4;varying vec2 vUv5;
|
|
419
|
-
#endif
|
|
420
|
-
#if EDGE_DETECTION_MODE == 1
|
|
421
|
-
#include <common>
|
|
422
|
-
#endif
|
|
423
|
-
#if EDGE_DETECTION_MODE == 0 || PREDICATION_MODE == 1
|
|
424
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
425
|
-
uniform highp sampler2D depthBuffer;
|
|
426
|
-
#else
|
|
427
|
-
uniform mediump sampler2D depthBuffer;
|
|
428
|
-
#endif
|
|
429
|
-
float readDepth(const in vec2 uv){
|
|
430
|
-
#if DEPTH_PACKING == 3201
|
|
431
|
-
return unpackRGBAToDepth(texture2D(depthBuffer,uv));
|
|
432
|
-
#else
|
|
433
|
-
return texture2D(depthBuffer,uv).r;
|
|
434
|
-
#endif
|
|
435
|
-
}vec3 gatherNeighbors(){float p=readDepth(vUv);float pLeft=readDepth(vUv0);float pTop=readDepth(vUv1);return vec3(p,pLeft,pTop);}
|
|
436
|
-
#elif PREDICATION_MODE == 2
|
|
437
|
-
uniform sampler2D predicationBuffer;vec3 gatherNeighbors(){float p=texture2D(predicationBuffer,vUv).r;float pLeft=texture2D(predicationBuffer,vUv0).r;float pTop=texture2D(predicationBuffer,vUv1).r;return vec3(p,pLeft,pTop);}
|
|
438
|
-
#endif
|
|
439
|
-
#if PREDICATION_MODE != 0
|
|
440
|
-
vec2 calculatePredicatedThreshold(){vec3 neighbours=gatherNeighbors();vec2 delta=abs(neighbours.xx-neighbours.yz);vec2 edges=step(PREDICATION_THRESHOLD,delta);return PREDICATION_SCALE*EDGE_THRESHOLD*(1.0-PREDICATION_STRENGTH*edges);}
|
|
441
|
-
#endif
|
|
442
|
-
#if EDGE_DETECTION_MODE != 0
|
|
443
|
-
uniform sampler2D inputBuffer;
|
|
444
|
-
#endif
|
|
445
|
-
void main(){
|
|
446
|
-
#if EDGE_DETECTION_MODE == 0
|
|
447
|
-
const vec2 threshold=vec2(DEPTH_THRESHOLD);
|
|
448
|
-
#elif PREDICATION_MODE != 0
|
|
449
|
-
vec2 threshold=calculatePredicatedThreshold();
|
|
450
|
-
#else
|
|
451
|
-
const vec2 threshold=vec2(EDGE_THRESHOLD);
|
|
452
|
-
#endif
|
|
453
|
-
#if EDGE_DETECTION_MODE == 0
|
|
454
|
-
vec3 neighbors=gatherNeighbors();vec2 delta=abs(neighbors.xx-vec2(neighbors.y,neighbors.z));vec2 edges=step(threshold,delta);if(dot(edges,vec2(1.0))==0.0){discard;}gl_FragColor=vec4(edges,0.0,1.0);
|
|
455
|
-
#elif EDGE_DETECTION_MODE == 1
|
|
456
|
-
float l=luminance(texture2D(inputBuffer,vUv).rgb);float lLeft=luminance(texture2D(inputBuffer,vUv0).rgb);float lTop=luminance(texture2D(inputBuffer,vUv1).rgb);vec4 delta;delta.xy=abs(l-vec2(lLeft,lTop));vec2 edges=step(threshold,delta.xy);if(dot(edges,vec2(1.0))==0.0){discard;}float lRight=luminance(texture2D(inputBuffer,vUv2).rgb);float lBottom=luminance(texture2D(inputBuffer,vUv3).rgb);delta.zw=abs(l-vec2(lRight,lBottom));vec2 maxDelta=max(delta.xy,delta.zw);float lLeftLeft=luminance(texture2D(inputBuffer,vUv4).rgb);float lTopTop=luminance(texture2D(inputBuffer,vUv5).rgb);delta.zw=abs(vec2(lLeft,lTop)-vec2(lLeftLeft,lTopTop));maxDelta=max(maxDelta.xy,delta.zw);float finalDelta=max(maxDelta.x,maxDelta.y);edges.xy*=step(finalDelta,LOCAL_CONTRAST_ADAPTATION_FACTOR*delta.xy);gl_FragColor=vec4(edges,0.0,1.0);
|
|
457
|
-
#elif EDGE_DETECTION_MODE == 2
|
|
458
|
-
vec4 delta;vec3 c=texture2D(inputBuffer,vUv).rgb;vec3 cLeft=texture2D(inputBuffer,vUv0).rgb;vec3 t=abs(c-cLeft);delta.x=max(max(t.r,t.g),t.b);vec3 cTop=texture2D(inputBuffer,vUv1).rgb;t=abs(c-cTop);delta.y=max(max(t.r,t.g),t.b);vec2 edges=step(threshold,delta.xy);if(dot(edges,vec2(1.0))==0.0){discard;}vec3 cRight=texture2D(inputBuffer,vUv2).rgb;t=abs(c-cRight);delta.z=max(max(t.r,t.g),t.b);vec3 cBottom=texture2D(inputBuffer,vUv3).rgb;t=abs(c-cBottom);delta.w=max(max(t.r,t.g),t.b);vec2 maxDelta=max(delta.xy,delta.zw);vec3 cLeftLeft=texture2D(inputBuffer,vUv4).rgb;t=abs(c-cLeftLeft);delta.z=max(max(t.r,t.g),t.b);vec3 cTopTop=texture2D(inputBuffer,vUv5).rgb;t=abs(c-cTopTop);delta.w=max(max(t.r,t.g),t.b);maxDelta=max(maxDelta.xy,delta.zw);float finalDelta=max(maxDelta.x,maxDelta.y);edges*=step(finalDelta,LOCAL_CONTRAST_ADAPTATION_FACTOR*delta.xy);gl_FragColor=vec4(edges,0.0,1.0);
|
|
459
|
-
#endif
|
|
460
|
-
}`,oa=`uniform vec2 texelSize;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;
|
|
461
|
-
#if EDGE_DETECTION_MODE != 0
|
|
462
|
-
varying vec2 vUv2;varying vec2 vUv3;varying vec2 vUv4;varying vec2 vUv5;
|
|
463
|
-
#endif
|
|
464
|
-
void main(){vUv=position.xy*0.5+0.5;vUv0=vUv+texelSize*vec2(-1.0,0.0);vUv1=vUv+texelSize*vec2(0.0,-1.0);
|
|
465
|
-
#if EDGE_DETECTION_MODE != 0
|
|
466
|
-
vUv2=vUv+texelSize*vec2(1.0,0.0);vUv3=vUv+texelSize*vec2(0.0,1.0);vUv4=vUv+texelSize*vec2(-2.0,0.0);vUv5=vUv+texelSize*vec2(0.0,-2.0);
|
|
467
|
-
#endif
|
|
468
|
-
gl_Position=vec4(position.xy,1.0,1.0);}`,Ne=class extends i.ShaderMaterial{constructor(e=new i.Vector2,t=Ye.COLOR){super({name:"EdgeDetectionMaterial",defines:{THREE_REVISION:i.REVISION.replace(/\D+/g,""),LOCAL_CONTRAST_ADAPTATION_FACTOR:"2.0",EDGE_THRESHOLD:"0.1",DEPTH_THRESHOLD:"0.01",PREDICATION_MODE:"0",PREDICATION_THRESHOLD:"0.01",PREDICATION_SCALE:"2.0",PREDICATION_STRENGTH:"1.0",DEPTH_PACKING:"0"},uniforms:{inputBuffer:new i.Uniform$1(null),depthBuffer:new i.Uniform$1(null),predicationBuffer:new i.Uniform$1(null),texelSize:new i.Uniform$1(e)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:na,vertexShader:oa}),this.edgeDetectionMode=t}set depthBuffer(e){this.uniforms.depthBuffer.value=e}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=i.BasicDepthPacking){this.depthBuffer=e,this.depthPacking=t}get edgeDetectionMode(){return Number(this.defines.EDGE_DETECTION_MODE)}set edgeDetectionMode(e){this.defines.EDGE_DETECTION_MODE=e.toFixed(0),this.needsUpdate=!0}getEdgeDetectionMode(){return this.edgeDetectionMode}setEdgeDetectionMode(e){this.edgeDetectionMode=e}get localContrastAdaptationFactor(){return Number(this.defines.LOCAL_CONTRAST_ADAPTATION_FACTOR)}set localContrastAdaptationFactor(e){this.defines.LOCAL_CONTRAST_ADAPTATION_FACTOR=e.toFixed("6"),this.needsUpdate=!0}getLocalContrastAdaptationFactor(){return this.localContrastAdaptationFactor}setLocalContrastAdaptationFactor(e){this.localContrastAdaptationFactor=e}get edgeDetectionThreshold(){return Number(this.defines.EDGE_THRESHOLD)}set edgeDetectionThreshold(e){this.defines.EDGE_THRESHOLD=e.toFixed("6"),this.defines.DEPTH_THRESHOLD=(e*.1).toFixed("6"),this.needsUpdate=!0}getEdgeDetectionThreshold(){return this.edgeDetectionThreshold}setEdgeDetectionThreshold(e){this.edgeDetectionThreshold=e}get predicationMode(){return Number(this.defines.PREDICATION_MODE)}set predicationMode(e){this.defines.PREDICATION_MODE=e.toFixed(0),this.needsUpdate=!0}getPredicationMode(){return this.predicationMode}setPredicationMode(e){this.predicationMode=e}set predicationBuffer(e){this.uniforms.predicationBuffer.value=e}setPredicationBuffer(e){this.uniforms.predicationBuffer.value=e}get predicationThreshold(){return Number(this.defines.PREDICATION_THRESHOLD)}set predicationThreshold(e){this.defines.PREDICATION_THRESHOLD=e.toFixed("6"),this.needsUpdate=!0}getPredicationThreshold(){return this.predicationThreshold}setPredicationThreshold(e){this.predicationThreshold=e}get predicationScale(){return Number(this.defines.PREDICATION_SCALE)}set predicationScale(e){this.defines.PREDICATION_SCALE=e.toFixed("6"),this.needsUpdate=!0}getPredicationScale(){return this.predicationScale}setPredicationScale(e){this.predicationScale=e}get predicationStrength(){return Number(this.defines.PREDICATION_STRENGTH)}set predicationStrength(e){this.defines.PREDICATION_STRENGTH=e.toFixed("6"),this.needsUpdate=!0}getPredicationStrength(){return this.predicationStrength}setPredicationStrength(e){this.predicationStrength=e}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},la=`#define sampleLevelZeroOffset(t, coord, offset) texture2D(t, coord + offset * texelSize)
|
|
469
|
-
#if __VERSION__ < 300
|
|
470
|
-
#define round(v) floor(v + 0.5)
|
|
471
|
-
#endif
|
|
472
|
-
#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
473
|
-
uniform mediump sampler2D inputBuffer;
|
|
474
|
-
#else
|
|
475
|
-
uniform lowp sampler2D inputBuffer;
|
|
476
|
-
#endif
|
|
477
|
-
uniform lowp sampler2D areaTexture;uniform lowp sampler2D searchTexture;uniform vec2 texelSize;uniform vec2 resolution;varying vec2 vUv;varying vec4 vOffset[3];varying vec2 vPixCoord;void movec(const in bvec2 c,inout vec2 variable,const in vec2 value){if(c.x){variable.x=value.x;}if(c.y){variable.y=value.y;}}void movec(const in bvec4 c,inout vec4 variable,const in vec4 value){movec(c.xy,variable.xy,value.xy);movec(c.zw,variable.zw,value.zw);}vec2 decodeDiagBilinearAccess(in vec2 e){e.r=e.r*abs(5.0*e.r-5.0*0.75);return round(e);}vec4 decodeDiagBilinearAccess(in vec4 e){e.rb=e.rb*abs(5.0*e.rb-5.0*0.75);return round(e);}vec2 searchDiag1(const in vec2 texCoord,const in vec2 dir,out vec2 e){vec4 coord=vec4(texCoord,-1.0,1.0);vec3 t=vec3(texelSize,1.0);for(int i=0;i<MAX_SEARCH_STEPS_INT;++i){if(!(coord.z<float(MAX_SEARCH_STEPS_DIAG_INT-1)&&coord.w>0.9)){break;}coord.xyz=t*vec3(dir,1.0)+coord.xyz;e=texture2D(inputBuffer,coord.xy).rg;coord.w=dot(e,vec2(0.5));}return coord.zw;}vec2 searchDiag2(const in vec2 texCoord,const in vec2 dir,out vec2 e){vec4 coord=vec4(texCoord,-1.0,1.0);coord.x+=0.25*texelSize.x;vec3 t=vec3(texelSize,1.0);for(int i=0;i<MAX_SEARCH_STEPS_INT;++i){if(!(coord.z<float(MAX_SEARCH_STEPS_DIAG_INT-1)&&coord.w>0.9)){break;}coord.xyz=t*vec3(dir,1.0)+coord.xyz;e=texture2D(inputBuffer,coord.xy).rg;e=decodeDiagBilinearAccess(e);coord.w=dot(e,vec2(0.5));}return coord.zw;}vec2 areaDiag(const in vec2 dist,const in vec2 e,const in float offset){vec2 texCoord=vec2(AREATEX_MAX_DISTANCE_DIAG,AREATEX_MAX_DISTANCE_DIAG)*e+dist;texCoord=AREATEX_PIXEL_SIZE*texCoord+0.5*AREATEX_PIXEL_SIZE;texCoord.x+=0.5;texCoord.y+=AREATEX_SUBTEX_SIZE*offset;return texture2D(areaTexture,texCoord).rg;}vec2 calculateDiagWeights(const in vec2 texCoord,const in vec2 e,const in vec4 subsampleIndices){vec2 weights=vec2(0.0);vec4 d;vec2 end;if(e.r>0.0){d.xz=searchDiag1(texCoord,vec2(-1.0,1.0),end);d.x+=float(end.y>0.9);}else{d.xz=vec2(0.0);}d.yw=searchDiag1(texCoord,vec2(1.0,-1.0),end);if(d.x+d.y>2.0){vec4 coords=vec4(-d.x+0.25,d.x,d.y,-d.y-0.25)*texelSize.xyxy+texCoord.xyxy;vec4 c;c.xy=sampleLevelZeroOffset(inputBuffer,coords.xy,vec2(-1,0)).rg;c.zw=sampleLevelZeroOffset(inputBuffer,coords.zw,vec2(1,0)).rg;c.yxwz=decodeDiagBilinearAccess(c.xyzw);vec2 cc=vec2(2.0)*c.xz+c.yw;movec(bvec2(step(0.9,d.zw)),cc,vec2(0.0));weights+=areaDiag(d.xy,cc,subsampleIndices.z);}d.xz=searchDiag2(texCoord,vec2(-1.0,-1.0),end);if(sampleLevelZeroOffset(inputBuffer,texCoord,vec2(1,0)).r>0.0){d.yw=searchDiag2(texCoord,vec2(1.0),end);d.y+=float(end.y>0.9);}else{d.yw=vec2(0.0);}if(d.x+d.y>2.0){vec4 coords=vec4(-d.x,-d.x,d.y,d.y)*texelSize.xyxy+texCoord.xyxy;vec4 c;c.x=sampleLevelZeroOffset(inputBuffer,coords.xy,vec2(-1,0)).g;c.y=sampleLevelZeroOffset(inputBuffer,coords.xy,vec2(0,-1)).r;c.zw=sampleLevelZeroOffset(inputBuffer,coords.zw,vec2(1,0)).gr;vec2 cc=vec2(2.0)*c.xz+c.yw;movec(bvec2(step(0.9,d.zw)),cc,vec2(0.0));weights+=areaDiag(d.xy,cc,subsampleIndices.w).gr;}return weights;}float searchLength(const in vec2 e,const in float offset){vec2 scale=SEARCHTEX_SIZE*vec2(0.5,-1.0);vec2 bias=SEARCHTEX_SIZE*vec2(offset,1.0);scale+=vec2(-1.0,1.0);bias+=vec2(0.5,-0.5);scale*=1.0/SEARCHTEX_PACKED_SIZE;bias*=1.0/SEARCHTEX_PACKED_SIZE;return texture2D(searchTexture,scale*e+bias).r;}float searchXLeft(in vec2 texCoord,const in float end){vec2 e=vec2(0.0,1.0);for(int i=0;i<MAX_SEARCH_STEPS_INT;++i){if(!(texCoord.x>end&&e.g>0.8281&&e.r==0.0)){break;}e=texture2D(inputBuffer,texCoord).rg;texCoord=vec2(-2.0,0.0)*texelSize+texCoord;}float offset=-(255.0/127.0)*searchLength(e,0.0)+3.25;return texelSize.x*offset+texCoord.x;}float searchXRight(vec2 texCoord,const in float end){vec2 e=vec2(0.0,1.0);for(int i=0;i<MAX_SEARCH_STEPS_INT;++i){if(!(texCoord.x<end&&e.g>0.8281&&e.r==0.0)){break;}e=texture2D(inputBuffer,texCoord).rg;texCoord=vec2(2.0,0.0)*texelSize.xy+texCoord;}float offset=-(255.0/127.0)*searchLength(e,0.5)+3.25;return-texelSize.x*offset+texCoord.x;}float searchYUp(vec2 texCoord,const in float end){vec2 e=vec2(1.0,0.0);for(int i=0;i<MAX_SEARCH_STEPS_INT;++i){if(!(texCoord.y>end&&e.r>0.8281&&e.g==0.0)){break;}e=texture2D(inputBuffer,texCoord).rg;texCoord=-vec2(0.0,2.0)*texelSize.xy+texCoord;}float offset=-(255.0/127.0)*searchLength(e.gr,0.0)+3.25;return texelSize.y*offset+texCoord.y;}float searchYDown(vec2 texCoord,const in float end){vec2 e=vec2(1.0,0.0);for(int i=0;i<MAX_SEARCH_STEPS_INT;i++){if(!(texCoord.y<end&&e.r>0.8281&&e.g==0.0)){break;}e=texture2D(inputBuffer,texCoord).rg;texCoord=vec2(0.0,2.0)*texelSize.xy+texCoord;}float offset=-(255.0/127.0)*searchLength(e.gr,0.5)+3.25;return-texelSize.y*offset+texCoord.y;}vec2 area(const in vec2 dist,const in float e1,const in float e2,const in float offset){vec2 texCoord=vec2(AREATEX_MAX_DISTANCE)*round(4.0*vec2(e1,e2))+dist;texCoord=AREATEX_PIXEL_SIZE*texCoord+0.5*AREATEX_PIXEL_SIZE;texCoord.y=AREATEX_SUBTEX_SIZE*offset+texCoord.y;return texture2D(areaTexture,texCoord).rg;}void detectHorizontalCornerPattern(inout vec2 weights,const in vec4 texCoord,const in vec2 d){
|
|
478
|
-
#if !defined(DISABLE_CORNER_DETECTION)
|
|
479
|
-
vec2 leftRight=step(d.xy,d.yx);vec2 rounding=(1.0-CORNER_ROUNDING_NORM)*leftRight;rounding/=leftRight.x+leftRight.y;vec2 factor=vec2(1.0);factor.x-=rounding.x*sampleLevelZeroOffset(inputBuffer,texCoord.xy,vec2(0,1)).r;factor.x-=rounding.y*sampleLevelZeroOffset(inputBuffer,texCoord.zw,vec2(1,1)).r;factor.y-=rounding.x*sampleLevelZeroOffset(inputBuffer,texCoord.xy,vec2(0,-2)).r;factor.y-=rounding.y*sampleLevelZeroOffset(inputBuffer,texCoord.zw,vec2(1,-2)).r;weights*=clamp(factor,0.0,1.0);
|
|
480
|
-
#endif
|
|
481
|
-
}void detectVerticalCornerPattern(inout vec2 weights,const in vec4 texCoord,const in vec2 d){
|
|
482
|
-
#if !defined(DISABLE_CORNER_DETECTION)
|
|
483
|
-
vec2 leftRight=step(d.xy,d.yx);vec2 rounding=(1.0-CORNER_ROUNDING_NORM)*leftRight;rounding/=leftRight.x+leftRight.y;vec2 factor=vec2(1.0);factor.x-=rounding.x*sampleLevelZeroOffset(inputBuffer,texCoord.xy,vec2(1,0)).g;factor.x-=rounding.y*sampleLevelZeroOffset(inputBuffer,texCoord.zw,vec2(1,1)).g;factor.y-=rounding.x*sampleLevelZeroOffset(inputBuffer,texCoord.xy,vec2(-2,0)).g;factor.y-=rounding.y*sampleLevelZeroOffset(inputBuffer,texCoord.zw,vec2(-2,1)).g;weights*=clamp(factor,0.0,1.0);
|
|
484
|
-
#endif
|
|
485
|
-
}void main(){vec4 weights=vec4(0.0);vec4 subsampleIndices=vec4(0.0);vec2 e=texture2D(inputBuffer,vUv).rg;if(e.g>0.0){
|
|
486
|
-
#if !defined(DISABLE_DIAG_DETECTION)
|
|
487
|
-
weights.rg=calculateDiagWeights(vUv,e,subsampleIndices);if(weights.r==-weights.g){
|
|
488
|
-
#endif
|
|
489
|
-
vec2 d;vec3 coords;coords.x=searchXLeft(vOffset[0].xy,vOffset[2].x);coords.y=vOffset[1].y;d.x=coords.x;float e1=texture2D(inputBuffer,coords.xy).r;coords.z=searchXRight(vOffset[0].zw,vOffset[2].y);d.y=coords.z;d=round(resolution.xx*d+-vPixCoord.xx);vec2 sqrtD=sqrt(abs(d));float e2=sampleLevelZeroOffset(inputBuffer,coords.zy,vec2(1,0)).r;weights.rg=area(sqrtD,e1,e2,subsampleIndices.y);coords.y=vUv.y;detectHorizontalCornerPattern(weights.rg,coords.xyzy,d);
|
|
490
|
-
#if !defined(DISABLE_DIAG_DETECTION)
|
|
491
|
-
}else{e.r=0.0;}
|
|
492
|
-
#endif
|
|
493
|
-
}if(e.r>0.0){vec2 d;vec3 coords;coords.y=searchYUp(vOffset[1].xy,vOffset[2].z);coords.x=vOffset[0].x;d.x=coords.y;float e1=texture2D(inputBuffer,coords.xy).g;coords.z=searchYDown(vOffset[1].zw,vOffset[2].w);d.y=coords.z;d=round(resolution.yy*d-vPixCoord.yy);vec2 sqrtD=sqrt(abs(d));float e2=sampleLevelZeroOffset(inputBuffer,coords.xz,vec2(0,1)).g;weights.ba=area(sqrtD,e1,e2,subsampleIndices.x);coords.x=vUv.x;detectVerticalCornerPattern(weights.ba,coords.xyxz,d);}gl_FragColor=weights;}`,ua="uniform vec2 texelSize;uniform vec2 resolution;varying vec2 vUv;varying vec4 vOffset[3];varying vec2 vPixCoord;void main(){vUv=position.xy*0.5+0.5;vPixCoord=vUv*resolution;vOffset[0]=vUv.xyxy+texelSize.xyxy*vec4(-0.25,-0.125,1.25,-0.125);vOffset[1]=vUv.xyxy+texelSize.xyxy*vec4(-0.125,-0.25,-0.125,1.25);vOffset[2]=vec4(vOffset[0].xz,vOffset[1].yw)+vec4(-2.0,2.0,-2.0,2.0)*texelSize.xxyy*MAX_SEARCH_STEPS_FLOAT;gl_Position=vec4(position.xy,1.0,1.0);}",Bt=class extends i.ShaderMaterial{constructor(e=new i.Vector2,t=new i.Vector2){super({name:"SMAAWeightsMaterial",defines:{MAX_SEARCH_STEPS_INT:"16",MAX_SEARCH_STEPS_FLOAT:"16.0",MAX_SEARCH_STEPS_DIAG_INT:"8",MAX_SEARCH_STEPS_DIAG_FLOAT:"8.0",CORNER_ROUNDING:"25",CORNER_ROUNDING_NORM:"0.25",AREATEX_MAX_DISTANCE:"16.0",AREATEX_MAX_DISTANCE_DIAG:"20.0",AREATEX_PIXEL_SIZE:"(1.0 / vec2(160.0, 560.0))",AREATEX_SUBTEX_SIZE:"(1.0 / 7.0)",SEARCHTEX_SIZE:"vec2(66.0, 33.0)",SEARCHTEX_PACKED_SIZE:"vec2(64.0, 16.0)"},uniforms:{inputBuffer:new i.Uniform$1(null),searchTexture:new i.Uniform$1(null),areaTexture:new i.Uniform$1(null),resolution:new i.Uniform$1(t),texelSize:new i.Uniform$1(e)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:la,vertexShader:ua})}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}get searchTexture(){return this.uniforms.searchTexture.value}set searchTexture(e){this.uniforms.searchTexture.value=e}get areaTexture(){return this.uniforms.areaTexture.value}set areaTexture(e){this.uniforms.areaTexture.value=e}setLookupTextures(e,t){this.searchTexture=e,this.areaTexture=t}get orthogonalSearchSteps(){return Number(this.defines.MAX_SEARCH_STEPS_INT)}set orthogonalSearchSteps(e){const t=Math.min(Math.max(e,0),112);this.defines.MAX_SEARCH_STEPS_INT=t.toFixed("0"),this.defines.MAX_SEARCH_STEPS_FLOAT=t.toFixed("1"),this.needsUpdate=!0}setOrthogonalSearchSteps(e){this.orthogonalSearchSteps=e}get diagonalSearchSteps(){return Number(this.defines.MAX_SEARCH_STEPS_DIAG_INT)}set diagonalSearchSteps(e){const t=Math.min(Math.max(e,0),20);this.defines.MAX_SEARCH_STEPS_DIAG_INT=t.toFixed("0"),this.defines.MAX_SEARCH_STEPS_DIAG_FLOAT=t.toFixed("1"),this.needsUpdate=!0}setDiagonalSearchSteps(e){this.diagonalSearchSteps=e}get diagonalDetection(){return this.defines.DISABLE_DIAG_DETECTION===void 0}set diagonalDetection(e){e?delete this.defines.DISABLE_DIAG_DETECTION:this.defines.DISABLE_DIAG_DETECTION="1",this.needsUpdate=!0}isDiagonalDetectionEnabled(){return this.diagonalDetection}setDiagonalDetectionEnabled(e){this.diagonalDetection=e}get cornerRounding(){return Number(this.defines.CORNER_ROUNDING)}set cornerRounding(e){const t=Math.min(Math.max(e,0),100);this.defines.CORNER_ROUNDING=t.toFixed("4"),this.defines.CORNER_ROUNDING_NORM=(t/100).toFixed("4"),this.needsUpdate=!0}setCornerRounding(e){this.cornerRounding=e}get cornerDetection(){return this.defines.DISABLE_CORNER_DETECTION===void 0}set cornerDetection(e){e?delete this.defines.DISABLE_CORNER_DETECTION:this.defines.DISABLE_CORNER_DETECTION="1",this.needsUpdate=!0}isCornerRoundingEnabled(){return this.cornerDetection}setCornerRoundingEnabled(e){this.cornerDetection=e}setSize(e,t){const r=this.uniforms;r.texelSize.value.set(1/e,1/t),r.resolution.value.set(e,t)}},He="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAQCAYAAACm53kpAAAAeElEQVRYR+2XSwqAMAxEJ168ePEqwRSKhIIiuHjJqiU0gWE+1CQdApcVAMUAuARaMGCX1MIL/Ow13++9lW2s3mW9MWvsnWc/2fvGygwPAN4E8QzAA4CXAB6AHjG4JTHYI1ey3pcx6FHnEfhLDOIBKAmUBK6/ANUDTlROXAHd9EC1AAAAAElFTkSuQmCC",Ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAIwCAYAAAABNmBHAAAgAElEQVR4Xuy9CbhlV1ktOvbpq09DkiIkUBI6kxASIH0DlAQiIK1wRfSJTx+i4JX7vKIigs8HXpXvqVcvrcC9agQ7IDTSSWgqCQQliDRBJKkkhDSkqVPNqVOnP+8b//rH3P+eZ+199tlznVTlvVrft7+1T7OaueZY42/m37QALKNk2wHg1pITlB17mC+Pp11W3X/LHyT32vhg48/5SOv+PnwpsHA70JoGlueB1iKApeqzvOzn44GatTB76Xzhd7suBR7+WWADgDEAwwCG/L54b/poDLrHuvvm70Z2Avhsc+PVcxscBU8F8C8ADg5+ipIjD/PlGwfgju8B924E5seARUfLsiNmqQW0IjL8+7L2NYD/7COBzfcCm+aB8SVgdAkYIRCXKyDax4EdAanL5PuNPllNvXDlAHwFgP8AcC2AhRIoDXbsYb48dl5WkVFTE3LGDcC9m4CZCWBuFFgeAZaGAYJQQCRqDHT+McJrVb8zwATUXH02MHYfMHEIGFsAxgjApQqACYQORjtd/B7Axt/z79sC0+cMPgjjlwPwVwHcA+DfAHzTxcVgWBroqMN8+cYBeM71wH0TwKExYHYUWCIAHYRLTlkCYgcIBcAgU/n3qy8GRu4HRgnAOWBkERhddPAJhGJDBxkvw7cqimr+zFM/ZLnZF64cgL8BYD+AWwB8x/dlWuWagHiYL984AJ/0RWBy1AE4AizyM1yxYAcTigW55xMbAkxEiwEdkJ/ZCQxPAiOHgB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R5xPR9mRRu/31IVgvgUccT4dNaobvd/TGYAjzqejumqj93s6A3DE+XRUg2VSCjdaGr3fUw+I+VPwiPPpqJjO8J1Nw43e7ymHwHoAKMFd7QErAeEE5NNJMb3R+z3lsGcNzgfgiPPpomJ6o/d76oGwPgCOKJ8uKqY3er+nKwBHmE+noqRG7/fUA199U/AI8+kEwEbv93QHoEhZTnA+nYqSGr3fBoAtaiqBUImdm5hPJwA2er+nKwBHnE+X1gUzSbnR+z11wPj/AeCpPDD3t7rvAAAAAElFTkSuQmCC",ca="uniform sampler2D weightMap;varying vec2 vOffset0;varying vec2 vOffset1;void movec(const in bvec2 c,inout vec2 variable,const in vec2 value){if(c.x){variable.x=value.x;}if(c.y){variable.y=value.y;}}void movec(const in bvec4 c,inout vec4 variable,const in vec4 value){movec(c.xy,variable.xy,value.xy);movec(c.zw,variable.zw,value.zw);}void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec4 a;a.x=texture2D(weightMap,vOffset0).a;a.y=texture2D(weightMap,vOffset1).g;a.wz=texture2D(weightMap,uv).rb;vec4 color=inputColor;if(dot(a,vec4(1.0))>=1e-5){bool h=max(a.x,a.z)>max(a.y,a.w);vec4 blendingOffset=vec4(0.0,a.y,0.0,a.w);vec2 blendingWeight=a.yw;movec(bvec4(h),blendingOffset,vec4(a.x,0.0,a.z,0.0));movec(bvec2(h),blendingWeight,a.xz);blendingWeight/=dot(blendingWeight,vec2(1.0));vec4 blendingCoord=blendingOffset*vec4(texelSize,-texelSize)+uv.xyxy;color=blendingWeight.x*texture2D(inputBuffer,blendingCoord.xy);color+=blendingWeight.y*texture2D(inputBuffer,blendingCoord.zw);}outputColor=color;}",fa="varying vec2 vOffset0;varying vec2 vOffset1;void mainSupport(const in vec2 uv){vOffset0=uv+texelSize*vec2(1.0,0.0);vOffset1=uv+texelSize*vec2(0.0,1.0);}",ha=class extends C{constructor({blendFunction:e=p.SRC,preset:t=se.MEDIUM,edgeDetectionMode:r=Ye.COLOR,predicationMode:a=Et.DISABLED}={}){super("SMAAEffect",ca,{vertexShader:fa,blendFunction:e,attributes:I.CONVOLUTION|I.DEPTH,uniforms:new Map([["weightMap",new i.Uniform$1(null)]])});let s,o;arguments.length>1&&(s=arguments[0],o=arguments[1],arguments.length>2&&(t=arguments[2]),arguments.length>3&&(r=arguments[3])),this.renderTargetEdges=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTargetEdges.texture.name="SMAA.Edges",this.renderTargetWeights=this.renderTargetEdges.clone(),this.renderTargetWeights.texture.name="SMAA.Weights",this.uniforms.get("weightMap").value=this.renderTargetWeights.texture,this.clearPass=new _(!0,!1,!1),this.clearPass.overrideClearColor=new i.Color(0),this.clearPass.overrideClearAlpha=1,this.edgeDetectionPass=new O(new Ne),this.edgeDetectionMaterial.edgeDetectionMode=r,this.edgeDetectionMaterial.predicationMode=a,this.weightsPass=new O(new Bt);const n=new i.LoadingManager;n.onLoad=()=>{const l=new i.Texture(s);l.name="SMAA.Search",l.magFilter=i.NearestFilter,l.minFilter=i.NearestFilter,l.generateMipmaps=!1,l.needsUpdate=!0,l.flipY=!0,this.weightsMaterial.searchTexture=l;const u=new i.Texture(o);u.name="SMAA.Area",u.magFilter=i.LinearFilter,u.minFilter=i.LinearFilter,u.generateMipmaps=!1,u.needsUpdate=!0,u.flipY=!1,this.weightsMaterial.areaTexture=u,this.dispatchEvent({type:"load"})},n.itemStart("search"),n.itemStart("area"),s!==void 0&&o!==void 0?(n.itemEnd("search"),n.itemEnd("area")):typeof Image<"u"&&(s=new Image,o=new Image,s.addEventListener("load",()=>n.itemEnd("search")),o.addEventListener("load",()=>n.itemEnd("area")),s.src=He,o.src=Ge),this.applyPreset(t)}get edgesTexture(){return this.renderTargetEdges.texture}getEdgesTexture(){return this.edgesTexture}get weightsTexture(){return this.renderTargetWeights.texture}getWeightsTexture(){return this.weightsTexture}get edgeDetectionMaterial(){return this.edgeDetectionPass.fullscreenMaterial}get colorEdgesMaterial(){return this.edgeDetectionMaterial}getEdgeDetectionMaterial(){return this.edgeDetectionMaterial}get weightsMaterial(){return this.weightsPass.fullscreenMaterial}getWeightsMaterial(){return this.weightsMaterial}setEdgeDetectionThreshold(e){this.edgeDetectionMaterial.edgeDetectionThreshold=e}setOrthogonalSearchSteps(e){this.weightsMaterial.orthogonalSearchSteps=e}applyPreset(e){const t=this.edgeDetectionMaterial,r=this.weightsMaterial;switch(e){case se.LOW:t.edgeDetectionThreshold=.15,r.orthogonalSearchSteps=4,r.diagonalDetection=!1,r.cornerDetection=!1;break;case se.MEDIUM:t.edgeDetectionThreshold=.1,r.orthogonalSearchSteps=8,r.diagonalDetection=!1,r.cornerDetection=!1;break;case se.HIGH:t.edgeDetectionThreshold=.1,r.orthogonalSearchSteps=16,r.diagonalSearchSteps=8,r.cornerRounding=25,r.diagonalDetection=!0,r.cornerDetection=!0;break;case se.ULTRA:t.edgeDetectionThreshold=.05,r.orthogonalSearchSteps=32,r.diagonalSearchSteps=16,r.cornerRounding=25,r.diagonalDetection=!0,r.cornerDetection=!0;break}}setDepthTexture(e,t=i.BasicDepthPacking){this.edgeDetectionMaterial.depthBuffer=e,this.edgeDetectionMaterial.depthPacking=t}update(e,t,r){this.clearPass.render(e,this.renderTargetEdges),this.edgeDetectionPass.render(e,t,this.renderTargetEdges),this.weightsPass.render(e,this.renderTargetEdges,this.renderTargetWeights)}setSize(e,t){this.edgeDetectionMaterial.setSize(e,t),this.weightsMaterial.setSize(e,t),this.renderTargetEdges.setSize(e,t),this.renderTargetWeights.setSize(e,t)}dispose(){const{searchTexture:e,areaTexture:t}=this.weightsMaterial;e!==null&&t!==null&&(e.dispose(),t.dispose()),super.dispose()}static get searchImageDataURL(){return He}static get areaImageDataURL(){return Ge}},da=`#include <common>
|
|
494
|
-
#include <packing>
|
|
495
|
-
#ifdef NORMAL_DEPTH
|
|
496
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
497
|
-
uniform highp sampler2D normalDepthBuffer;
|
|
498
|
-
#else
|
|
499
|
-
uniform mediump sampler2D normalDepthBuffer;
|
|
500
|
-
#endif
|
|
501
|
-
float readDepth(const in vec2 uv){return texture2D(normalDepthBuffer,uv).a;}
|
|
502
|
-
#else
|
|
503
|
-
uniform lowp sampler2D normalBuffer;
|
|
504
|
-
#if DEPTH_PACKING == 3201
|
|
505
|
-
uniform lowp sampler2D depthBuffer;
|
|
506
|
-
#elif defined(GL_FRAGMENT_PRECISION_HIGH)
|
|
507
|
-
uniform highp sampler2D depthBuffer;
|
|
508
|
-
#else
|
|
509
|
-
uniform mediump sampler2D depthBuffer;
|
|
510
|
-
#endif
|
|
511
|
-
float readDepth(const in vec2 uv){
|
|
512
|
-
#if DEPTH_PACKING == 3201
|
|
513
|
-
return unpackRGBAToDepth(texture2D(depthBuffer,uv));
|
|
514
|
-
#else
|
|
515
|
-
return texture2D(depthBuffer,uv).r;
|
|
516
|
-
#endif
|
|
517
|
-
}
|
|
518
|
-
#endif
|
|
519
|
-
uniform lowp sampler2D noiseTexture;uniform mat4 inverseProjectionMatrix;uniform mat4 projectionMatrix;uniform vec2 texelSize;uniform vec2 cameraNearFar;uniform float intensity;uniform float minRadiusScale;uniform float fade;uniform float bias;uniform vec2 distanceCutoff;uniform vec2 proximityCutoff;varying vec2 vUv;varying vec2 vUv2;float getViewZ(const in float depth){
|
|
520
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
521
|
-
return perspectiveDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);
|
|
522
|
-
#else
|
|
523
|
-
return orthographicDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);
|
|
524
|
-
#endif
|
|
525
|
-
}vec3 getViewPosition(const in vec2 screenPosition,const in float depth,const in float viewZ){vec4 clipPosition=vec4(vec3(screenPosition,depth)*2.0-1.0,1.0);float clipW=projectionMatrix[2][3]*viewZ+projectionMatrix[3][3];clipPosition*=clipW;return(inverseProjectionMatrix*clipPosition).xyz;}float getAmbientOcclusion(const in vec3 p,const in vec3 n,const in float depth,const in vec2 uv){float radiusScale=1.0-smoothstep(0.0,distanceCutoff.y,depth);radiusScale=radiusScale*(1.0-minRadiusScale)+minRadiusScale;float radius=RADIUS*radiusScale;float noise=texture2D(noiseTexture,vUv2).r;float baseAngle=noise*PI2;float rings=SPIRAL_TURNS*PI2;float occlusion=0.0;int taps=0;for(int i=0;i<SAMPLES_INT;++i){float alpha=(float(i)+0.5)*INV_SAMPLES_FLOAT;float angle=alpha*rings+baseAngle;vec2 rotation=vec2(cos(angle),sin(angle));vec2 coords=alpha*radius*rotation*texelSize+uv;if(coords.s<0.0||coords.s>1.0||coords.t<0.0||coords.t>1.0){continue;}float sampleDepth=readDepth(coords);float viewZ=getViewZ(sampleDepth);
|
|
526
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
527
|
-
float linearSampleDepth=viewZToOrthographicDepth(viewZ,cameraNearFar.x,cameraNearFar.y);
|
|
528
|
-
#else
|
|
529
|
-
float linearSampleDepth=sampleDepth;
|
|
530
|
-
#endif
|
|
531
|
-
float proximity=abs(depth-linearSampleDepth);if(proximity<proximityCutoff.y){float falloff=1.0-smoothstep(proximityCutoff.x,proximityCutoff.y,proximity);vec3 Q=getViewPosition(coords,sampleDepth,viewZ);vec3 v=Q-p;float vv=dot(v,v);float vn=dot(v,n)-bias;float f=max(RADIUS_SQ-vv,0.0)/RADIUS_SQ;occlusion+=(f*f*f*max(vn/(fade+vv),0.0))*falloff;}++taps;}return occlusion/(4.0*max(float(taps),1.0));}void main(){
|
|
532
|
-
#ifdef NORMAL_DEPTH
|
|
533
|
-
vec4 normalDepth=texture2D(normalDepthBuffer,vUv);
|
|
534
|
-
#else
|
|
535
|
-
vec4 normalDepth=vec4(texture2D(normalBuffer,vUv).xyz,readDepth(vUv));
|
|
536
|
-
#endif
|
|
537
|
-
float ao=0.0;float depth=normalDepth.a;float viewZ=getViewZ(depth);
|
|
538
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
539
|
-
float linearDepth=viewZToOrthographicDepth(viewZ,cameraNearFar.x,cameraNearFar.y);
|
|
540
|
-
#else
|
|
541
|
-
float linearDepth=depth;
|
|
542
|
-
#endif
|
|
543
|
-
if(linearDepth<distanceCutoff.y){vec3 viewPosition=getViewPosition(vUv,depth,viewZ);vec3 viewNormal=unpackRGBToNormal(normalDepth.rgb);ao+=getAmbientOcclusion(viewPosition,viewNormal,linearDepth,vUv);float d=smoothstep(distanceCutoff.x,distanceCutoff.y,linearDepth);ao=mix(ao,0.0,d);
|
|
544
|
-
#ifdef LEGACY_INTENSITY
|
|
545
|
-
ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
|
|
546
|
-
#endif
|
|
547
|
-
}gl_FragColor.r=ao;}`,va="uniform vec2 noiseScale;varying vec2 vUv;varying vec2 vUv2;void main(){vUv=position.xy*0.5+0.5;vUv2=vUv*noiseScale;gl_Position=vec4(position.xy,1.0,1.0);}",Mt=class extends i.ShaderMaterial{constructor(e){super({name:"SSAOMaterial",defines:{SAMPLES_INT:"0",INV_SAMPLES_FLOAT:"0.0",SPIRAL_TURNS:"0.0",RADIUS:"1.0",RADIUS_SQ:"1.0",DISTANCE_SCALING:"1",DEPTH_PACKING:"0"},uniforms:{depthBuffer:new i.Uniform$1(null),normalBuffer:new i.Uniform$1(null),normalDepthBuffer:new i.Uniform$1(null),noiseTexture:new i.Uniform$1(null),inverseProjectionMatrix:new i.Uniform$1(new i.Matrix4),projectionMatrix:new i.Uniform$1(new i.Matrix4),texelSize:new i.Uniform$1(new i.Vector2),cameraNearFar:new i.Uniform$1(new i.Vector2),distanceCutoff:new i.Uniform$1(new i.Vector2),proximityCutoff:new i.Uniform$1(new i.Vector2),noiseScale:new i.Uniform$1(new i.Vector2),minRadiusScale:new i.Uniform$1(.33),intensity:new i.Uniform$1(1),fade:new i.Uniform$1(.01),bias:new i.Uniform$1(0)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:da,vertexShader:va}),this.copyCameraSettings(e),this.resolution=new i.Vector2,this.r=1}get near(){return this.uniforms.cameraNearFar.value.x}get far(){return this.uniforms.cameraNearFar.value.y}set normalDepthBuffer(e){this.uniforms.normalDepthBuffer.value=e,e!==null?this.defines.NORMAL_DEPTH="1":delete this.defines.NORMAL_DEPTH,this.needsUpdate=!0}setNormalDepthBuffer(e){this.normalDepthBuffer=e}set normalBuffer(e){this.uniforms.normalBuffer.value=e}setNormalBuffer(e){this.uniforms.normalBuffer.value=e}set depthBuffer(e){this.uniforms.depthBuffer.value=e}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=i.BasicDepthPacking){this.depthBuffer=e,this.depthPacking=t}set noiseTexture(e){this.uniforms.noiseTexture.value=e}setNoiseTexture(e){this.uniforms.noiseTexture.value=e}get samples(){return Number(this.defines.SAMPLES_INT)}set samples(e){this.defines.SAMPLES_INT=e.toFixed(0),this.defines.INV_SAMPLES_FLOAT=(1/e).toFixed(9),this.needsUpdate=!0}getSamples(){return this.samples}setSamples(e){this.samples=e}get rings(){return Number(this.defines.SPIRAL_TURNS)}set rings(e){this.defines.SPIRAL_TURNS=e.toFixed(1),this.needsUpdate=!0}getRings(){return this.rings}setRings(e){this.rings=e}get intensity(){return this.uniforms.intensity.value}set intensity(e){this.uniforms.intensity.value=e,this.defines.LEGACY_INTENSITY===void 0&&(this.defines.LEGACY_INTENSITY="1",this.needsUpdate=!0)}getIntensity(){return this.uniforms.intensity.value}setIntensity(e){this.uniforms.intensity.value=e}get fade(){return this.uniforms.fade.value}set fade(e){this.uniforms.fade.value=e}getFade(){return this.uniforms.fade.value}setFade(e){this.uniforms.fade.value=e}get bias(){return this.uniforms.bias.value}set bias(e){this.uniforms.bias.value=e}getBias(){return this.uniforms.bias.value}setBias(e){this.uniforms.bias.value=e}get minRadiusScale(){return this.uniforms.minRadiusScale.value}set minRadiusScale(e){this.uniforms.minRadiusScale.value=e}getMinRadiusScale(){return this.uniforms.minRadiusScale.value}setMinRadiusScale(e){this.uniforms.minRadiusScale.value=e}updateRadius(){const e=this.r*this.resolution.height;this.defines.RADIUS=e.toFixed(11),this.defines.RADIUS_SQ=(e*e).toFixed(11),this.needsUpdate=!0}get radius(){return this.r}set radius(e){this.r=Math.min(Math.max(e,1e-6),1),this.updateRadius()}getRadius(){return this.radius}setRadius(e){this.radius=e}get distanceScaling(){return!0}set distanceScaling(e){}isDistanceScalingEnabled(){return this.distanceScaling}setDistanceScalingEnabled(e){this.distanceScaling=e}get distanceThreshold(){return this.uniforms.distanceCutoff.value.x}set distanceThreshold(e){this.uniforms.distanceCutoff.value.set(Math.min(Math.max(e,0),1),Math.min(Math.max(e+this.distanceFalloff,0),1))}get worldDistanceThreshold(){return-j(this.distanceThreshold,this.near,this.far)}set worldDistanceThreshold(e){this.distanceThreshold=W(-e,this.near,this.far)}get distanceFalloff(){return this.uniforms.distanceCutoff.value.y-this.distanceThreshold}set distanceFalloff(e){this.uniforms.distanceCutoff.value.y=Math.min(Math.max(this.distanceThreshold+e,0),1)}get worldDistanceFalloff(){return-j(this.distanceFalloff,this.near,this.far)}set worldDistanceFalloff(e){this.distanceFalloff=W(-e,this.near,this.far)}setDistanceCutoff(e,t){this.uniforms.distanceCutoff.value.set(Math.min(Math.max(e,0),1),Math.min(Math.max(e+t,0),1))}get proximityThreshold(){return this.uniforms.proximityCutoff.value.x}set proximityThreshold(e){this.uniforms.proximityCutoff.value.set(Math.min(Math.max(e,0),1),Math.min(Math.max(e+this.proximityFalloff,0),1))}get worldProximityThreshold(){return-j(this.proximityThreshold,this.near,this.far)}set worldProximityThreshold(e){this.proximityThreshold=W(-e,this.near,this.far)}get proximityFalloff(){return this.uniforms.proximityCutoff.value.y-this.proximityThreshold}set proximityFalloff(e){this.uniforms.proximityCutoff.value.y=Math.min(Math.max(this.proximityThreshold+e,0),1)}get worldProximityFalloff(){return-j(this.proximityFalloff,this.near,this.far)}set worldProximityFalloff(e){this.proximityFalloff=W(-e,this.near,this.far)}setProximityCutoff(e,t){this.uniforms.proximityCutoff.value.set(Math.min(Math.max(e,0),1),Math.min(Math.max(e+t,0),1))}setTexelSize(e,t){this.uniforms.texelSize.value.set(e,t)}adoptCameraSettings(e){this.copyCameraSettings(e)}copyCameraSettings(e){e&&(this.uniforms.cameraNearFar.value.set(e.near,e.far),this.uniforms.projectionMatrix.value.copy(e.projectionMatrix),this.uniforms.inverseProjectionMatrix.value.copy(e.projectionMatrix).invert(),e instanceof i.PerspectiveCamera?this.defines.PERSPECTIVE_CAMERA="1":delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}setSize(e,t){const r=this.uniforms,a=r.noiseTexture.value;a!==null&&r.noiseScale.value.set(e/a.image.width,t/a.image.height),r.texelSize.value.set(1/e,1/t),this.resolution.set(e,t),this.updateRadius()}},pa=`#include <packing>
|
|
548
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
549
|
-
uniform highp sampler2D depthBuffer;
|
|
550
|
-
#else
|
|
551
|
-
uniform mediump sampler2D depthBuffer;
|
|
552
|
-
#endif
|
|
553
|
-
#ifdef DOWNSAMPLE_NORMALS
|
|
554
|
-
uniform lowp sampler2D normalBuffer;
|
|
555
|
-
#endif
|
|
556
|
-
varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;float readDepth(const in vec2 uv){
|
|
557
|
-
#if DEPTH_PACKING == 3201
|
|
558
|
-
return unpackRGBAToDepth(texture2D(depthBuffer,uv));
|
|
559
|
-
#else
|
|
560
|
-
return texture2D(depthBuffer,uv).r;
|
|
561
|
-
#endif
|
|
562
|
-
}int findBestDepth(const in float samples[4]){float c=(samples[0]+samples[1]+samples[2]+samples[3])*0.25;float distances[4];distances[0]=abs(c-samples[0]);distances[1]=abs(c-samples[1]);distances[2]=abs(c-samples[2]);distances[3]=abs(c-samples[3]);float maxDistance=max(max(distances[0],distances[1]),max(distances[2],distances[3]));int remaining[3];int rejected[3];int i,j,k;for(i=0,j=0,k=0;i<4;++i){if(distances[i]<maxDistance){remaining[j++]=i;}else{rejected[k++]=i;}}for(;j<3;++j){remaining[j]=rejected[--k];}vec3 s=vec3(samples[remaining[0]],samples[remaining[1]],samples[remaining[2]]);c=(s.x+s.y+s.z)/3.0;distances[0]=abs(c-s.x);distances[1]=abs(c-s.y);distances[2]=abs(c-s.z);float minDistance=min(distances[0],min(distances[1],distances[2]));for(i=0;i<3;++i){if(distances[i]==minDistance){break;}}return remaining[i];}void main(){float d[4];d[0]=readDepth(vUv0);d[1]=readDepth(vUv1);d[2]=readDepth(vUv2);d[3]=readDepth(vUv3);int index=findBestDepth(d);
|
|
563
|
-
#ifdef DOWNSAMPLE_NORMALS
|
|
564
|
-
vec3 n[4];n[0]=texture2D(normalBuffer,vUv0).rgb;n[1]=texture2D(normalBuffer,vUv1).rgb;n[2]=texture2D(normalBuffer,vUv2).rgb;n[3]=texture2D(normalBuffer,vUv3).rgb;
|
|
565
|
-
#else
|
|
566
|
-
vec3 n[4];n[0]=vec3(0.0);n[1]=vec3(0.0);n[2]=vec3(0.0);n[3]=vec3(0.0);
|
|
567
|
-
#endif
|
|
568
|
-
gl_FragColor=vec4(n[index],d[index]);}`,ma="uniform vec2 texelSize;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec2 uv=position.xy*0.5+0.5;vUv0=uv;vUv1=vec2(uv.x,uv.y+texelSize.y);vUv2=vec2(uv.x+texelSize.x,uv.y);vUv3=uv+texelSize;gl_Position=vec4(position.xy,1.0,1.0);}",Ut=class extends i.ShaderMaterial{constructor(){super({name:"DepthDownsamplingMaterial",defines:{DEPTH_PACKING:"0"},uniforms:{depthBuffer:new i.Uniform$1(null),normalBuffer:new i.Uniform$1(null),texelSize:new i.Uniform$1(new i.Vector2)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:pa,vertexShader:ma})}set depthBuffer(e){this.uniforms.depthBuffer.value=e}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=i.BasicDepthPacking){this.depthBuffer=e,this.depthPacking=t}set normalBuffer(e){this.uniforms.normalBuffer.value=e,e!==null?this.defines.DOWNSAMPLE_NORMALS="1":delete this.defines.DOWNSAMPLE_NORMALS,this.needsUpdate=!0}setNormalBuffer(e){this.normalBuffer=e}setTexelSize(e,t){this.uniforms.texelSize.value.set(e,t)}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},Pt=class extends M{constructor({normalBuffer:e=null,resolutionScale:t=.5,width:r=A.AUTO_SIZE,height:a=A.AUTO_SIZE,resolutionX:s=r,resolutionY:o=a}={}){super("DepthDownsamplingPass");const n=new Ut;n.normalBuffer=e,this.fullscreenMaterial=n,this.needsDepthTexture=!0,this.needsSwap=!1,this.renderTarget=new i.WebGLRenderTarget(1,1,{minFilter:i.NearestFilter,magFilter:i.NearestFilter,depthBuffer:!1,type:i.FloatType}),this.renderTarget.texture.name="DepthDownsamplingPass.Target",this.renderTarget.texture.generateMipmaps=!1;const l=this.resolution=new A(this,s,o,t);l.addEventListener("change",u=>this.setSize(l.baseWidth,l.baseHeight))}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}getResolution(){return this.resolution}setDepthTexture(e,t=i.BasicDepthPacking){this.fullscreenMaterial.depthBuffer=e,this.fullscreenMaterial.depthPacking=t}render(e,t,r,a,s){e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t),this.renderTarget.setSize(r.width,r.height),this.fullscreenMaterial.setSize(e,t)}initialize(e,t,r){const a=e.getContext();if(!(a.getExtension("EXT_color_buffer_float")||a.getExtension("EXT_color_buffer_half_float")))throw new Error("Rendering to float texture is not supported.")}},ga=`uniform lowp sampler2D aoBuffer;uniform float luminanceInfluence;uniform float intensity;
|
|
569
|
-
#if defined(DEPTH_AWARE_UPSAMPLING) && defined(NORMAL_DEPTH)
|
|
570
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
571
|
-
uniform highp sampler2D normalDepthBuffer;
|
|
572
|
-
#else
|
|
573
|
-
uniform mediump sampler2D normalDepthBuffer;
|
|
574
|
-
#endif
|
|
575
|
-
#endif
|
|
576
|
-
#ifdef COLORIZE
|
|
577
|
-
uniform vec3 color;
|
|
578
|
-
#endif
|
|
579
|
-
void mainImage(const in vec4 inputColor,const in vec2 uv,const in float depth,out vec4 outputColor){float aoLinear=texture2D(aoBuffer,uv).r;
|
|
580
|
-
#if defined(DEPTH_AWARE_UPSAMPLING) && defined(NORMAL_DEPTH) && __VERSION__ == 300
|
|
581
|
-
vec4 normalDepth[4];normalDepth[0]=textureOffset(normalDepthBuffer,uv,ivec2(0,0));normalDepth[1]=textureOffset(normalDepthBuffer,uv,ivec2(0,1));normalDepth[2]=textureOffset(normalDepthBuffer,uv,ivec2(1,0));normalDepth[3]=textureOffset(normalDepthBuffer,uv,ivec2(1,1));float dot01=dot(normalDepth[0].rgb,normalDepth[1].rgb);float dot02=dot(normalDepth[0].rgb,normalDepth[2].rgb);float dot03=dot(normalDepth[0].rgb,normalDepth[3].rgb);float minDot=min(dot01,min(dot02,dot03));float s=step(THRESHOLD,minDot);float smallestDistance=1.0;int index;for(int i=0;i<4;++i){float distance=abs(depth-normalDepth[i].a);if(distance<smallestDistance){smallestDistance=distance;index=i;}}ivec2 offsets[4];offsets[0]=ivec2(0,0);offsets[1]=ivec2(0,1);offsets[2]=ivec2(1,0);offsets[3]=ivec2(1,1);ivec2 coord=ivec2(uv*vec2(textureSize(aoBuffer,0)))+offsets[index];float aoNearest=texelFetch(aoBuffer,coord,0).r;float ao=mix(aoNearest,aoLinear,s);
|
|
582
|
-
#else
|
|
583
|
-
float ao=aoLinear;
|
|
584
|
-
#endif
|
|
585
|
-
float l=luminance(inputColor.rgb);ao=mix(ao,0.0,l*luminanceInfluence);ao=clamp(ao*intensity,0.0,1.0);
|
|
586
|
-
#ifdef COLORIZE
|
|
587
|
-
outputColor=vec4(1.0-ao*(1.0-color),inputColor.a);
|
|
588
|
-
#else
|
|
589
|
-
outputColor=vec4(vec3(1.0-ao),inputColor.a);
|
|
590
|
-
#endif
|
|
591
|
-
}`,et=64,Aa=class extends C{constructor(e,t,{blendFunction:r=p.MULTIPLY,samples:a=9,rings:s=7,normalDepthBuffer:o=null,depthAwareUpsampling:n=!0,worldDistanceThreshold:l,worldDistanceFalloff:u,worldProximityThreshold:c,worldProximityFalloff:f,distanceThreshold:h=.97,distanceFalloff:d=.03,rangeThreshold:v=5e-4,rangeFalloff:g=.001,minRadiusScale:m=.1,luminanceInfluence:T=.7,radius:w=.1825,intensity:D=1,bias:x=.025,fade:R=.01,color:H=null,resolutionScale:z=1,width:k=A.AUTO_SIZE,height:B=A.AUTO_SIZE,resolutionX:$=k,resolutionY:ee=B}={}){super("SSAOEffect",ga,{blendFunction:r,attributes:I.DEPTH,defines:new Map([["THRESHOLD","0.997"]]),uniforms:new Map([["aoBuffer",new i.Uniform$1(null)],["normalDepthBuffer",new i.Uniform$1(o)],["luminanceInfluence",new i.Uniform$1(T)],["color",new i.Uniform$1(null)],["intensity",new i.Uniform$1(D)],["scale",new i.Uniform$1(0)]])}),this.renderTarget=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTarget.texture.name="AO.Target",this.uniforms.get("aoBuffer").value=this.renderTarget.texture;const Q=this.resolution=new A(this,$,ee,z);Q.addEventListener("change",ge=>this.setSize(Q.baseWidth,Q.baseHeight)),this.camera=e,this.depthDownsamplingPass=new Pt({normalBuffer:t,resolutionScale:z}),this.depthDownsamplingPass.enabled=o===null,this.ssaoPass=new O(new Mt(e));const X=new Ee(et,et,i.RGBAFormat);X.wrapS=X.wrapT=i.RepeatWrapping;const U=this.ssaoMaterial;U.normalBuffer=t,U.noiseTexture=X,U.minRadiusScale=m,U.samples=a,U.radius=w,U.rings=s,U.fade=R,U.bias=x,U.distanceThreshold=h,U.distanceFalloff=d,U.proximityThreshold=v,U.proximityFalloff=g,l!==void 0&&(U.worldDistanceThreshold=l),u!==void 0&&(U.worldDistanceFalloff=u),c!==void 0&&(U.worldProximityThreshold=c),f!==void 0&&(U.worldProximityFalloff=f),o!==null&&(this.ssaoMaterial.normalDepthBuffer=o,this.defines.set("NORMAL_DEPTH","1")),this.depthAwareUpsampling=n,this.color=H}set mainCamera(e){this.camera=e,this.ssaoMaterial.copyCameraSettings(e)}get normalBuffer(){return this.ssaoMaterial.normalBuffer}set normalBuffer(e){this.ssaoMaterial.normalBuffer=e,this.depthDownsamplingPass.fullscreenMaterial.normalBuffer=e}getResolution(){return this.resolution}get ssaoMaterial(){return this.ssaoPass.fullscreenMaterial}getSSAOMaterial(){return this.ssaoMaterial}get samples(){return this.ssaoMaterial.samples}set samples(e){this.ssaoMaterial.samples=e}get rings(){return this.ssaoMaterial.rings}set rings(e){this.ssaoMaterial.rings=e}get radius(){return this.ssaoMaterial.radius}set radius(e){this.ssaoMaterial.radius=e}get depthAwareUpsampling(){return this.defines.has("DEPTH_AWARE_UPSAMPLING")}set depthAwareUpsampling(e){this.depthAwareUpsampling!==e&&(e?this.defines.set("DEPTH_AWARE_UPSAMPLING","1"):this.defines.delete("DEPTH_AWARE_UPSAMPLING"),this.setChanged())}isDepthAwareUpsamplingEnabled(){return this.depthAwareUpsampling}setDepthAwareUpsamplingEnabled(e){this.depthAwareUpsampling=e}get distanceScaling(){return!0}set distanceScaling(e){}get color(){return this.uniforms.get("color").value}set color(e){const t=this.uniforms,r=this.defines;e!==null?r.has("COLORIZE")?t.get("color").value.set(e):(r.set("COLORIZE","1"),t.get("color").value=new i.Color(e),this.setChanged()):r.has("COLORIZE")&&(r.delete("COLORIZE"),t.get("color").value=null,this.setChanged())}get luminanceInfluence(){return this.uniforms.get("luminanceInfluence").value}set luminanceInfluence(e){this.uniforms.get("luminanceInfluence").value=e}get intensity(){return this.uniforms.get("intensity").value}set intensity(e){this.uniforms.get("intensity").value=e}getColor(){return this.color}setColor(e){this.color=e}setDistanceCutoff(e,t){this.ssaoMaterial.distanceThreshold=e,this.ssaoMaterial.distanceFalloff=t}setProximityCutoff(e,t){this.ssaoMaterial.proximityThreshold=e,this.ssaoMaterial.proximityFalloff=t}setDepthTexture(e,t=i.BasicDepthPacking){this.depthDownsamplingPass.setDepthTexture(e,t),this.ssaoMaterial.depthBuffer=e,this.ssaoMaterial.depthPacking=t}update(e,t,r){const a=this.renderTarget;this.depthDownsamplingPass.enabled&&this.depthDownsamplingPass.render(e),this.ssaoPass.render(e,null,a)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t);const a=r.width,s=r.height;this.ssaoMaterial.copyCameraSettings(this.camera),this.ssaoMaterial.setSize(a,s),this.renderTarget.setSize(a,s),this.depthDownsamplingPass.resolution.scale=r.scale,this.depthDownsamplingPass.setSize(e,t)}initialize(e,t,r){try{let a=this.uniforms.get("normalDepthBuffer").value;a===null&&(this.depthDownsamplingPass.initialize(e,t,r),a=this.depthDownsamplingPass.texture,this.uniforms.get("normalDepthBuffer").value=a,this.ssaoMaterial.normalDepthBuffer=a,this.defines.set("NORMAL_DEPTH","1"))}catch{this.depthDownsamplingPass.enabled=!1}}},xa=`#ifdef TEXTURE_PRECISION_HIGH
|
|
592
|
-
uniform mediump sampler2D map;
|
|
593
|
-
#else
|
|
594
|
-
uniform lowp sampler2D map;
|
|
595
|
-
#endif
|
|
596
|
-
varying vec2 vUv2;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){
|
|
597
|
-
#ifdef UV_TRANSFORM
|
|
598
|
-
vec4 texel=texture2D(map,vUv2);
|
|
599
|
-
#else
|
|
600
|
-
vec4 texel=texture2D(map,uv);
|
|
601
|
-
#endif
|
|
602
|
-
outputColor=TEXEL;}`,Da=`#ifdef ASPECT_CORRECTION
|
|
603
|
-
uniform float scale;
|
|
604
|
-
#else
|
|
605
|
-
uniform mat3 uvTransform;
|
|
606
|
-
#endif
|
|
607
|
-
varying vec2 vUv2;void mainSupport(const in vec2 uv){
|
|
608
|
-
#ifdef ASPECT_CORRECTION
|
|
609
|
-
vUv2=uv*vec2(aspect,1.0)*scale;
|
|
610
|
-
#else
|
|
611
|
-
vUv2=(uvTransform*vec3(uv,1.0)).xy;
|
|
612
|
-
#endif
|
|
613
|
-
}`,Ta=class extends C{constructor({blendFunction:e,texture:t=null,aspectCorrection:r=!1}={}){super("TextureEffect",xa,{blendFunction:e,defines:new Map([["TEXEL","texel"]]),uniforms:new Map([["map",new i.Uniform$1(null)],["scale",new i.Uniform$1(1)],["uvTransform",new i.Uniform$1(null)]])}),this.texture=t,this.aspectCorrection=r}get texture(){return this.uniforms.get("map").value}set texture(e){const t=this.texture,r=this.uniforms,a=this.defines;t!==e&&(r.get("map").value=e,r.get("uvTransform").value=e.matrix,a.delete("TEXTURE_PRECISION_HIGH"),e!==null&&(e.matrixAutoUpdate?(a.set("UV_TRANSFORM","1"),this.setVertexShader(Da)):(a.delete("UV_TRANSFORM"),this.setVertexShader(null)),e.type!==i.UnsignedByteType&&a.set("TEXTURE_PRECISION_HIGH","1"),(t===null||t.type!==e.type||t.encoding!==e.encoding)&&this.setChanged()))}getTexture(){return this.texture}setTexture(e){this.texture=e}get aspectCorrection(){return this.defines.has("ASPECT_CORRECTION")}set aspectCorrection(e){this.aspectCorrection!==e&&(e?this.defines.set("ASPECT_CORRECTION","1"):this.defines.delete("ASPECT_CORRECTION"),this.setChanged())}get uvTransform(){const e=this.texture;return e!==null&&e.matrixAutoUpdate}set uvTransform(e){const t=this.texture;t!==null&&(t.matrixAutoUpdate=e)}setTextureSwizzleRGBA(e,t=e,r=e,a=e){const s="rgba";let o="";(e!==Z.RED||t!==Z.GREEN||r!==Z.BLUE||a!==Z.ALPHA)&&(o=[".",s[e],s[t],s[r],s[a]].join("")),this.defines.set("TEXEL","texel"+o),this.setChanged()}update(e,t,r){this.texture.matrixAutoUpdate&&this.texture.updateMatrix()}},wa=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
614
|
-
uniform mediump sampler2D inputBuffer;
|
|
615
|
-
#else
|
|
616
|
-
uniform lowp sampler2D inputBuffer;
|
|
617
|
-
#endif
|
|
618
|
-
uniform vec4 maskParams;varying vec2 vUv;varying vec2 vUv2;varying vec2 vOffset;float linearGradientMask(const in float x){return smoothstep(maskParams.x,maskParams.y,x)-smoothstep(maskParams.w,maskParams.z,x);}void main(){vec2 dUv=vOffset*(1.0-linearGradientMask(vUv2.y));vec4 sum=texture2D(inputBuffer,vec2(vUv.x-dUv.x,vUv.y+dUv.y));sum+=texture2D(inputBuffer,vec2(vUv.x+dUv.x,vUv.y+dUv.y));sum+=texture2D(inputBuffer,vec2(vUv.x+dUv.x,vUv.y-dUv.y));sum+=texture2D(inputBuffer,vec2(vUv.x-dUv.x,vUv.y-dUv.y));gl_FragColor=sum*0.25;
|
|
619
|
-
#include <colorspace_fragment>
|
|
620
|
-
}`,Sa="uniform vec4 texelSize;uniform float kernel;uniform float scale;uniform float aspect;uniform vec2 rotation;varying vec2 vUv;varying vec2 vUv2;varying vec2 vOffset;void main(){vec2 uv=position.xy*0.5+0.5;vUv=uv;vUv2=(uv-0.5)*2.0*vec2(aspect,1.0);vUv2=vec2(dot(rotation,vUv2),dot(rotation,vec2(vUv2.y,-vUv2.x)));vOffset=(texelSize.xy*vec2(kernel)+texelSize.zw)*scale;gl_Position=vec4(position.xy,1.0,1.0);}",It=class extends Ce{constructor({kernelSize:e=G.MEDIUM,offset:t=0,rotation:r=0,focusArea:a=.4,feather:s=.3}={}){super(),this.fragmentShader=wa,this.vertexShader=Sa,this.kernelSize=e,this.uniforms.aspect=new i.Uniform$1(1),this.uniforms.rotation=new i.Uniform$1(new i.Vector2),this.uniforms.maskParams=new i.Uniform$1(new i.Vector4),this._offset=t,this._focusArea=a,this._feather=s,this.rotation=r,this.updateParams()}updateParams(){const e=this.uniforms.maskParams.value,t=Math.max(this.focusArea,0),r=Math.max(t-this.feather,0);e.set(this.offset-t,this.offset-r,this.offset+t,this.offset+r)}get rotation(){return Math.acos(this.uniforms.rotation.value.x)}set rotation(e){this.uniforms.rotation.value.set(Math.cos(e),Math.sin(e))}get offset(){return this._offset}set offset(e){this._offset=e,this.updateParams()}get focusArea(){return this._focusArea}set focusArea(e){this._focusArea=e,this.updateParams()}get feather(){return this._feather}set feather(e){this._feather=e,this.updateParams()}setSize(e,t){super.setSize(e,t),this.uniforms.aspect.value=e/t}},Rt=class extends q{constructor({offset:e=0,rotation:t=0,focusArea:r=.4,feather:a=.3,kernelSize:s=G.MEDIUM,resolutionScale:o=.5,resolutionX:n=A.AUTO_SIZE,resolutionY:l=A.AUTO_SIZE}={}){super({kernelSize:s,resolutionScale:o,resolutionX:n,resolutionY:l}),this.blurMaterial=new It({kernelSize:s,offset:e,rotation:t,focusArea:r,feather:a})}},Ca=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
621
|
-
uniform mediump sampler2D map;
|
|
622
|
-
#else
|
|
623
|
-
uniform lowp sampler2D map;
|
|
624
|
-
#endif
|
|
625
|
-
uniform vec2 maskParams;varying vec2 vUv2;float linearGradientMask(const in float x){return step(maskParams.x,x)-step(maskParams.y,x);}void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){float mask=linearGradientMask(vUv2.y);vec4 texel=texture2D(map,uv);outputColor=mix(texel,inputColor,mask);}`,Ea="uniform vec2 rotation;varying vec2 vUv2;void mainSupport(const in vec2 uv){vUv2=(uv-0.5)*2.0*vec2(aspect,1.0);vUv2=vec2(dot(rotation,vUv2),dot(rotation,vec2(vUv2.y,-vUv2.x)));}",ya=class extends C{constructor({blendFunction:e,offset:t=0,rotation:r=0,focusArea:a=.4,feather:s=.3,kernelSize:o=G.MEDIUM,resolutionScale:n=.5,resolutionX:l=A.AUTO_SIZE,resolutionY:u=A.AUTO_SIZE}={}){super("TiltShiftEffect",Ca,{vertexShader:Ea,blendFunction:e,uniforms:new Map([["rotation",new i.Uniform$1(new i.Vector2)],["maskParams",new i.Uniform$1(new i.Vector2)],["map",new i.Uniform$1(null)]])}),this._offset=t,this._focusArea=a,this._feather=s,this.renderTarget=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTarget.texture.name="TiltShift.Target",this.uniforms.get("map").value=this.renderTarget.texture,this.blurPass=new Rt({kernelSize:o,resolutionScale:n,resolutionX:l,resolutionY:u,offset:t,rotation:r,focusArea:a,feather:s});const c=this.resolution=new A(this,l,u,n);c.addEventListener("change",f=>this.setSize(c.baseWidth,c.baseHeight)),this.rotation=r,this.updateParams()}updateParams(){const e=this.uniforms.get("maskParams").value,t=Math.max(this.focusArea-this.feather,0);e.set(this.offset-t,this.offset+t)}get rotation(){return Math.acos(this.uniforms.get("rotation").value.x)}set rotation(e){this.uniforms.get("rotation").value.set(Math.cos(e),Math.sin(e)),this.blurPass.blurMaterial.rotation=e}get offset(){return this._offset}set offset(e){this._offset=e,this.blurPass.blurMaterial.offset=e,this.updateParams()}get focusArea(){return this._focusArea}set focusArea(e){this._focusArea=e,this.blurPass.blurMaterial.focusArea=e,this.updateParams()}get feather(){return this._feather}set feather(e){this._feather=e,this.blurPass.blurMaterial.feather=e,this.updateParams()}get bias(){return 0}set bias(e){}update(e,t,r){this.blurPass.render(e,t,this.renderTarget)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t),this.renderTarget.setSize(r.width,r.height),this.blurPass.resolution.copy(r)}initialize(e,t,r){this.blurPass.initialize(e,t,r),r!==void 0&&(this.renderTarget.texture.type=r,e!==null&&e.outputColorSpace===i.SRGBColorSpace&&(this.renderTarget.texture.colorSpace=i.SRGBColorSpace))}},Ba=`#include <packing>
|
|
626
|
-
#define packFloatToRGBA(v) packDepthToRGBA(v)
|
|
627
|
-
#define unpackRGBAToFloat(v) unpackRGBAToDepth(v)
|
|
628
|
-
uniform lowp sampler2D luminanceBuffer0;uniform lowp sampler2D luminanceBuffer1;uniform float minLuminance;uniform float deltaTime;uniform float tau;varying vec2 vUv;void main(){float l0=unpackRGBAToFloat(texture2D(luminanceBuffer0,vUv));
|
|
629
|
-
#if __VERSION__ < 300
|
|
630
|
-
float l1=texture2DLodEXT(luminanceBuffer1,vUv,MIP_LEVEL_1X1).r;
|
|
631
|
-
#else
|
|
632
|
-
float l1=textureLod(luminanceBuffer1,vUv,MIP_LEVEL_1X1).r;
|
|
633
|
-
#endif
|
|
634
|
-
l0=max(minLuminance,l0);l1=max(minLuminance,l1);float adaptedLum=l0+(l1-l0)*(1.0-exp(-deltaTime*tau));gl_FragColor=(adaptedLum==1.0)?vec4(1.0):packFloatToRGBA(adaptedLum);}`,bt=class extends i.ShaderMaterial{constructor(){super({name:"AdaptiveLuminanceMaterial",defines:{MIP_LEVEL_1X1:"0.0"},uniforms:{luminanceBuffer0:new i.Uniform$1(null),luminanceBuffer1:new i.Uniform$1(null),minLuminance:new i.Uniform$1(.01),deltaTime:new i.Uniform$1(0),tau:new i.Uniform$1(1)},extensions:{shaderTextureLOD:!0},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Ba,vertexShader:K})}set luminanceBuffer0(e){this.uniforms.luminanceBuffer0.value=e}setLuminanceBuffer0(e){this.uniforms.luminanceBuffer0.value=e}set luminanceBuffer1(e){this.uniforms.luminanceBuffer1.value=e}setLuminanceBuffer1(e){this.uniforms.luminanceBuffer1.value=e}set mipLevel1x1(e){this.defines.MIP_LEVEL_1X1=e.toFixed(1),this.needsUpdate=!0}setMipLevel1x1(e){this.mipLevel1x1=e}set deltaTime(e){this.uniforms.deltaTime.value=e}setDeltaTime(e){this.uniforms.deltaTime.value=e}get minLuminance(){return this.uniforms.minLuminance.value}set minLuminance(e){this.uniforms.minLuminance.value=e}getMinLuminance(){return this.uniforms.minLuminance.value}setMinLuminance(e){this.uniforms.minLuminance.value=e}get adaptationRate(){return this.uniforms.tau.value}set adaptationRate(e){this.uniforms.tau.value=e}getAdaptationRate(){return this.uniforms.tau.value}setAdaptationRate(e){this.uniforms.tau.value=e}},Ft=class extends M{constructor(e,{minLuminance:t=.01,adaptationRate:r=1}={}){super("AdaptiveLuminancePass"),this.fullscreenMaterial=new bt,this.needsSwap=!1,this.renderTargetPrevious=new i.WebGLRenderTarget(1,1,{minFilter:i.NearestFilter,magFilter:i.NearestFilter,depthBuffer:!1}),this.renderTargetPrevious.texture.name="Luminance.Previous";const a=this.fullscreenMaterial;a.luminanceBuffer0=this.renderTargetPrevious.texture,a.luminanceBuffer1=e,a.minLuminance=t,a.adaptationRate=r,this.renderTargetAdapted=this.renderTargetPrevious.clone(),this.renderTargetAdapted.texture.name="Luminance.Adapted",this.copyPass=new Se(this.renderTargetPrevious,!1)}get texture(){return this.renderTargetAdapted.texture}getTexture(){return this.renderTargetAdapted.texture}set mipLevel1x1(e){this.fullscreenMaterial.mipLevel1x1=e}get adaptationRate(){return this.fullscreenMaterial.adaptationRate}set adaptationRate(e){this.fullscreenMaterial.adaptationRate=e}render(e,t,r,a,s){this.fullscreenMaterial.deltaTime=a,e.setRenderTarget(this.renderToScreen?null:this.renderTargetAdapted),e.render(this.scene,this.camera),this.copyPass.render(e,this.renderTargetAdapted)}},Ma=`#include <tonemapping_pars_fragment>
|
|
635
|
-
uniform float whitePoint;
|
|
636
|
-
#if TONE_MAPPING_MODE == 2 || TONE_MAPPING_MODE == 3
|
|
637
|
-
uniform float middleGrey;
|
|
638
|
-
#if TONE_MAPPING_MODE == 3
|
|
639
|
-
uniform lowp sampler2D luminanceBuffer;
|
|
640
|
-
#else
|
|
641
|
-
uniform float averageLuminance;
|
|
642
|
-
#endif
|
|
643
|
-
vec3 Reinhard2ToneMapping(vec3 color){color*=toneMappingExposure;float l=luminance(color);
|
|
644
|
-
#if TONE_MAPPING_MODE == 3
|
|
645
|
-
float lumAvg=unpackRGBAToFloat(texture2D(luminanceBuffer,vec2(0.5)));
|
|
646
|
-
#else
|
|
647
|
-
float lumAvg=averageLuminance;
|
|
648
|
-
#endif
|
|
649
|
-
float lumScaled=(l*middleGrey)/max(lumAvg,1e-6);float lumCompressed=lumScaled*(1.0+lumScaled/(whitePoint*whitePoint));lumCompressed/=(1.0+lumScaled);return clamp(lumCompressed*color,0.0,1.0);}
|
|
650
|
-
#elif TONE_MAPPING_MODE == 4
|
|
651
|
-
#define A 0.15
|
|
652
|
-
#define B 0.50
|
|
653
|
-
#define C 0.10
|
|
654
|
-
#define D 0.20
|
|
655
|
-
#define E 0.02
|
|
656
|
-
#define F 0.30
|
|
657
|
-
vec3 Uncharted2Helper(const in vec3 x){return((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}vec3 Uncharted2ToneMapping(vec3 color){color*=toneMappingExposure;return clamp(Uncharted2Helper(color)/Uncharted2Helper(vec3(whitePoint)),0.0,1.0);}
|
|
658
|
-
#endif
|
|
659
|
-
void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){
|
|
660
|
-
#if TONE_MAPPING_MODE == 2 || TONE_MAPPING_MODE == 3
|
|
661
|
-
outputColor=vec4(Reinhard2ToneMapping(inputColor.rgb),inputColor.a);
|
|
662
|
-
#elif TONE_MAPPING_MODE == 4
|
|
663
|
-
outputColor=vec4(Uncharted2ToneMapping(inputColor.rgb),inputColor.a);
|
|
664
|
-
#else
|
|
665
|
-
outputColor=vec4(toneMapping(inputColor.rgb),inputColor.a);
|
|
666
|
-
#endif
|
|
667
|
-
}`,Ua=class extends C{constructor({blendFunction:e=p.SRC,adaptive:t=!1,mode:r=t?L.REINHARD2_ADAPTIVE:L.AGX,resolution:a=256,maxLuminance:s=4,whitePoint:o=s,middleGrey:n=.6,minLuminance:l=.01,averageLuminance:u=1,adaptationRate:c=1}={}){super("ToneMappingEffect",Ma,{blendFunction:e,uniforms:new Map([["luminanceBuffer",new i.Uniform$1(null)],["maxLuminance",new i.Uniform$1(s)],["whitePoint",new i.Uniform$1(o)],["middleGrey",new i.Uniform$1(n)],["averageLuminance",new i.Uniform$1(u)]])}),this.renderTargetLuminance=new i.WebGLRenderTarget(1,1,{minFilter:i.LinearMipmapLinearFilter,depthBuffer:!1}),this.renderTargetLuminance.texture.generateMipmaps=!0,this.renderTargetLuminance.texture.name="Luminance",this.luminancePass=new Qe({renderTarget:this.renderTargetLuminance}),this.adaptiveLuminancePass=new Ft(this.luminancePass.texture,{minLuminance:l,adaptationRate:c}),this.uniforms.get("luminanceBuffer").value=this.adaptiveLuminancePass.texture,this.resolution=a,this.mode=r}get mode(){return Number(this.defines.get("TONE_MAPPING_MODE"))}set mode(e){if(this.mode===e)return;const r=i.REVISION.replace(/\D+/g,"")>=168?"CineonToneMapping(texel)":"OptimizedCineonToneMapping(texel)";switch(this.defines.clear(),this.defines.set("TONE_MAPPING_MODE",e.toFixed(0)),e){case L.LINEAR:this.defines.set("toneMapping(texel)","LinearToneMapping(texel)");break;case L.REINHARD:this.defines.set("toneMapping(texel)","ReinhardToneMapping(texel)");break;case L.CINEON:case L.OPTIMIZED_CINEON:this.defines.set("toneMapping(texel)",r);break;case L.ACES_FILMIC:this.defines.set("toneMapping(texel)","ACESFilmicToneMapping(texel)");break;case L.AGX:this.defines.set("toneMapping(texel)","AgXToneMapping(texel)");break;case L.NEUTRAL:this.defines.set("toneMapping(texel)","NeutralToneMapping(texel)");break;default:this.defines.set("toneMapping(texel)","texel");break}this.adaptiveLuminancePass.enabled=e===L.REINHARD2_ADAPTIVE,this.setChanged()}getMode(){return this.mode}setMode(e){this.mode=e}get whitePoint(){return this.uniforms.get("whitePoint").value}set whitePoint(e){this.uniforms.get("whitePoint").value=e}get middleGrey(){return this.uniforms.get("middleGrey").value}set middleGrey(e){this.uniforms.get("middleGrey").value=e}get averageLuminance(){return this.uniforms.get("averageLuminance").value}set averageLuminance(e){this.uniforms.get("averageLuminance").value=e}get adaptiveLuminanceMaterial(){return this.adaptiveLuminancePass.fullscreenMaterial}getAdaptiveLuminanceMaterial(){return this.adaptiveLuminanceMaterial}get resolution(){return this.luminancePass.resolution.width}set resolution(e){const t=Math.max(0,Math.ceil(Math.log2(e))),r=Math.pow(2,t);this.luminancePass.resolution.setPreferredSize(r,r),this.adaptiveLuminanceMaterial.mipLevel1x1=t}getResolution(){return this.resolution}setResolution(e){this.resolution=e}get adaptive(){return this.mode===L.REINHARD2_ADAPTIVE}set adaptive(e){this.mode=e?L.REINHARD2_ADAPTIVE:L.REINHARD2}get adaptationRate(){return this.adaptiveLuminanceMaterial.adaptationRate}set adaptationRate(e){this.adaptiveLuminanceMaterial.adaptationRate=e}get distinction(){return console.warn(this.name,"distinction was removed."),1}set distinction(e){console.warn(this.name,"distinction was removed.")}update(e,t,r){this.adaptiveLuminancePass.enabled&&(this.luminancePass.render(e,t),this.adaptiveLuminancePass.render(e,null,null,r))}initialize(e,t,r){this.adaptiveLuminancePass.initialize(e,t,r)}},Pa=`uniform float offset;uniform float darkness;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){const vec2 center=vec2(0.5);vec3 color=inputColor.rgb;
|
|
668
|
-
#if VIGNETTE_TECHNIQUE == 0
|
|
669
|
-
float d=distance(uv,center);color*=smoothstep(0.8,offset*0.799,d*(darkness+offset));
|
|
670
|
-
#else
|
|
671
|
-
vec2 coord=(uv-center)*vec2(offset);color=mix(color,vec3(1.0-darkness),dot(coord,coord));
|
|
672
|
-
#endif
|
|
673
|
-
outputColor=vec4(color,inputColor.a);}`,Ia=class extends C{constructor({blendFunction:e,eskil:t=!1,technique:r=t?ne.ESKIL:ne.DEFAULT,offset:a=.5,darkness:s=.5}={}){super("VignetteEffect",Pa,{blendFunction:e,defines:new Map([["VIGNETTE_TECHNIQUE",r.toFixed(0)]]),uniforms:new Map([["offset",new i.Uniform$1(a)],["darkness",new i.Uniform$1(s)]])})}get technique(){return Number(this.defines.get("VIGNETTE_TECHNIQUE"))}set technique(e){this.technique!==e&&(this.defines.set("VIGNETTE_TECHNIQUE",e.toFixed(0)),this.setChanged())}get eskil(){return this.technique===ne.ESKIL}set eskil(e){this.technique=e?ne.ESKIL:ne.DEFAULT}getTechnique(){return this.technique}setTechnique(e){this.technique=e}get offset(){return this.uniforms.get("offset").value}set offset(e){this.uniforms.get("offset").value=e}getOffset(){return this.offset}setOffset(e){this.offset=e}get darkness(){return this.uniforms.get("darkness").value}set darkness(e){this.uniforms.get("darkness").value=e}getDarkness(){return this.darkness}setDarkness(e){this.darkness=e}},Ra=class extends i.Loader{load(e,t=()=>{},r=()=>{},a=null){const s=this.manager,o=new i.LoadingManager,n=new i.FileLoader(o);return n.setPath(this.path),n.setResponseType("text"),new Promise((l,u)=>{o.onError=c=>{s.itemError(c),a!==null?(a(`Failed to load ${c}`),l()):u(`Failed to load ${c}`)},s.itemStart(e),n.load(e,c=>{try{const f=this.parse(c);s.itemEnd(e),t(f),l(f)}catch(f){console.error(f),o.onError(e)}},r)})}parse(e){const t=/^[\d ]+$/m,r=/^([\d.e+-]+) +([\d.e+-]+) +([\d.e+-]+) *$/gm;let a=t.exec(e);if(a===null)throw new Error("Missing grid information");const s=a[0].trim().split(/\s+/g).map(v=>Number(v)),o=s[1]-s[0],n=s.length,l=n**2;for(let v=1,g=s.length;v<g;++v)if(o!==s[v]-s[v-1])throw new Error("Inconsistent grid size");const u=new Float32Array(n**3*4);let c=0,f=0;for(;(a=r.exec(e))!==null;){const v=Number(a[1]),g=Number(a[2]),m=Number(a[3]);c=Math.max(c,v,g,m);const T=f%n,w=Math.floor(f/n)%n,D=Math.floor(f/l)%n,x=(T*l+w*n+D)*4;u[x+0]=v,u[x+1]=g,u[x+2]=m,u[x+3]=1,++f}const h=Math.ceil(Math.log2(c)),d=Math.pow(2,h);for(let v=0,g=u.length;v<g;v+=4)u[v+0]/=d,u[v+1]/=d,u[v+2]/=d;return new de(u,n)}},ba=class extends i.Loader{load(e,t=()=>{},r=()=>{},a=null){const s=this.manager,o=new i.LoadingManager,n=new i.FileLoader(o);return n.setPath(this.path),n.setResponseType("text"),new Promise((l,u)=>{o.onError=c=>{s.itemError(c),a!==null?(a(`Failed to load ${c}`),l()):u(`Failed to load ${c}`)},s.itemStart(e),n.load(e,c=>{try{const f=this.parse(c);s.itemEnd(e),t(f),l(f)}catch(f){console.error(f),o.onError(e)}},r)})}parse(e){const t=/TITLE +"([^"]*)"/,r=/LUT_3D_SIZE +(\d+)/,a=/DOMAIN_MIN +([\d.]+) +([\d.]+) +([\d.]+)/,s=/DOMAIN_MAX +([\d.]+) +([\d.]+) +([\d.]+)/,o=/^([\d.e+-]+) +([\d.e+-]+) +([\d.e+-]+) *$/gm;let n=t.exec(e);const l=n!==null?n[1]:null;if(n=r.exec(e),n===null)throw new Error("Missing LUT_3D_SIZE information");const u=Number(n[1]),c=new Float32Array(u**3*4),f=new i.Vector3(0,0,0),h=new i.Vector3(1,1,1);if(n=a.exec(e),n!==null&&f.set(Number(n[1]),Number(n[2]),Number(n[3])),n=s.exec(e),n!==null&&h.set(Number(n[1]),Number(n[2]),Number(n[3])),f.x>h.x||f.y>h.y||f.z>h.z)throw f.set(0,0,0),h.set(1,1,1),new Error("Invalid input domain");let d=0;for(;(n=o.exec(e))!==null;)c[d++]=Number(n[1]),c[d++]=Number(n[2]),c[d++]=Number(n[3]),c[d++]=1;const v=new de(c,u);return v.domainMin.copy(f),v.domainMax.copy(h),l!==null&&(v.name=l),v}},Fa=class extends i.Loader{load(e=()=>{},t=null){arguments.length===4?(e=arguments[1],t=arguments[3]):(arguments.length===3||typeof arguments[0]!="function")&&(e=arguments[1],t=null);const r=this.manager,a=new i.LoadingManager;return new Promise((s,o)=>{const n=new Image,l=new Image;a.onError=u=>{r.itemError(u),t!==null?(t(`Failed to load ${u}`),s()):o(`Failed to load ${u}`)},a.onLoad=()=>{const u=[n,l];e(u),s(u)},n.addEventListener("error",u=>{a.itemError("smaa-search")}),l.addEventListener("error",u=>{a.itemError("smaa-area")}),n.addEventListener("load",()=>{r.itemEnd("smaa-search"),a.itemEnd("smaa-search")}),l.addEventListener("load",()=>{r.itemEnd("smaa-area"),a.itemEnd("smaa-area")}),r.itemStart("smaa-search"),r.itemStart("smaa-area"),a.itemStart("smaa-search"),a.itemStart("smaa-area"),n.src=He,l.src=Ge})}},La=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
674
|
-
uniform mediump sampler2D inputBuffer;
|
|
675
|
-
#else
|
|
676
|
-
uniform lowp sampler2D inputBuffer;
|
|
677
|
-
#endif
|
|
678
|
-
#ifdef BILATERAL
|
|
679
|
-
#include <packing>
|
|
680
|
-
uniform vec2 cameraNearFar;
|
|
681
|
-
#ifdef NORMAL_DEPTH
|
|
682
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
683
|
-
uniform highp sampler2D normalDepthBuffer;
|
|
684
|
-
#else
|
|
685
|
-
uniform mediump sampler2D normalDepthBuffer;
|
|
686
|
-
#endif
|
|
687
|
-
float readDepth(const in vec2 uv){return texture2D(normalDepthBuffer,uv).a;}
|
|
688
|
-
#else
|
|
689
|
-
#if DEPTH_PACKING == 3201
|
|
690
|
-
uniform lowp sampler2D depthBuffer;
|
|
691
|
-
#elif defined(GL_FRAGMENT_PRECISION_HIGH)
|
|
692
|
-
uniform highp sampler2D depthBuffer;
|
|
693
|
-
#else
|
|
694
|
-
uniform mediump sampler2D depthBuffer;
|
|
695
|
-
#endif
|
|
696
|
-
float readDepth(const in vec2 uv){
|
|
697
|
-
#if DEPTH_PACKING == 3201
|
|
698
|
-
return unpackRGBAToDepth(texture2D(depthBuffer,uv));
|
|
699
|
-
#else
|
|
700
|
-
return texture2D(depthBuffer,uv).r;
|
|
701
|
-
#endif
|
|
702
|
-
}
|
|
703
|
-
#endif
|
|
704
|
-
float getViewZ(const in float depth){
|
|
705
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
706
|
-
return perspectiveDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);
|
|
707
|
-
#else
|
|
708
|
-
return orthographicDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);
|
|
709
|
-
#endif
|
|
710
|
-
}
|
|
711
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
712
|
-
#define linearDepth(v) viewZToOrthographicDepth(getViewZ(readDepth(v)), cameraNearFar.x, cameraNearFar.y)
|
|
713
|
-
#else
|
|
714
|
-
#define linearDepth(v) readDepth(v)
|
|
715
|
-
#endif
|
|
716
|
-
#endif
|
|
717
|
-
#define getTexel(v) texture2D(inputBuffer, v)
|
|
718
|
-
#if KERNEL_SIZE == 3
|
|
719
|
-
varying vec2 vUv00,vUv01,vUv02;varying vec2 vUv03,vUv04,vUv05;varying vec2 vUv06,vUv07,vUv08;
|
|
720
|
-
#elif KERNEL_SIZE == 5 && MAX_VARYING_VECTORS >= 13
|
|
721
|
-
varying vec2 vUv00,vUv01,vUv02,vUv03,vUv04;varying vec2 vUv05,vUv06,vUv07,vUv08,vUv09;varying vec2 vUv10,vUv11,vUv12,vUv13,vUv14;varying vec2 vUv15,vUv16,vUv17,vUv18,vUv19;varying vec2 vUv20,vUv21,vUv22,vUv23,vUv24;
|
|
722
|
-
#else
|
|
723
|
-
uniform vec2 texelSize;uniform float scale;varying vec2 vUv;
|
|
724
|
-
#endif
|
|
725
|
-
void main(){
|
|
726
|
-
#if KERNEL_SIZE == 3
|
|
727
|
-
vec4 c[]=vec4[KERNEL_SIZE_SQ](getTexel(vUv00),getTexel(vUv01),getTexel(vUv02),getTexel(vUv03),getTexel(vUv04),getTexel(vUv05),getTexel(vUv06),getTexel(vUv07),getTexel(vUv08));
|
|
728
|
-
#ifdef BILATERAL
|
|
729
|
-
float z[]=float[KERNEL_SIZE_SQ](linearDepth(vUv00),linearDepth(vUv01),linearDepth(vUv02),linearDepth(vUv03),linearDepth(vUv04),linearDepth(vUv05),linearDepth(vUv06),linearDepth(vUv07),linearDepth(vUv08));
|
|
730
|
-
#endif
|
|
731
|
-
#elif KERNEL_SIZE == 5 && MAX_VARYING_VECTORS >= 13
|
|
732
|
-
vec4 c[]=vec4[KERNEL_SIZE_SQ](getTexel(vUv00),getTexel(vUv01),getTexel(vUv02),getTexel(vUv03),getTexel(vUv04),getTexel(vUv05),getTexel(vUv06),getTexel(vUv07),getTexel(vUv08),getTexel(vUv09),getTexel(vUv10),getTexel(vUv11),getTexel(vUv12),getTexel(vUv13),getTexel(vUv14),getTexel(vUv15),getTexel(vUv16),getTexel(vUv17),getTexel(vUv18),getTexel(vUv19),getTexel(vUv20),getTexel(vUv21),getTexel(vUv22),getTexel(vUv23),getTexel(vUv24));
|
|
733
|
-
#ifdef BILATERAL
|
|
734
|
-
float z[]=float[KERNEL_SIZE_SQ](linearDepth(vUv00),linearDepth(vUv01),linearDepth(vUv02),linearDepth(vUv03),linearDepth(vUv04),linearDepth(vUv05),linearDepth(vUv06),linearDepth(vUv07),linearDepth(vUv08),linearDepth(vUv09),linearDepth(vUv10),linearDepth(vUv11),linearDepth(vUv12),linearDepth(vUv13),linearDepth(vUv14),linearDepth(vUv15),linearDepth(vUv16),linearDepth(vUv17),linearDepth(vUv18),linearDepth(vUv19),linearDepth(vUv20),linearDepth(vUv21),linearDepth(vUv22),linearDepth(vUv23),linearDepth(vUv24));
|
|
735
|
-
#endif
|
|
736
|
-
#endif
|
|
737
|
-
vec4 result=vec4(0.0);
|
|
738
|
-
#ifdef BILATERAL
|
|
739
|
-
float w=0.0;
|
|
740
|
-
#if KERNEL_SIZE == 3 || (KERNEL_SIZE == 5 && MAX_VARYING_VECTORS >= 13)
|
|
741
|
-
float centerDepth=z[KERNEL_SIZE_SQ_HALF];for(int i=0;i<KERNEL_SIZE_SQ;++i){float d=step(abs(z[i]-centerDepth),DISTANCE_THRESHOLD);result+=c[i]*d;w+=d;}
|
|
742
|
-
#else
|
|
743
|
-
float centerDepth=linearDepth(vUv);vec2 s=texelSize*scale;for(int x=-KERNEL_SIZE_HALF;x<=KERNEL_SIZE_HALF;++x){for(int y=-KERNEL_SIZE_HALF;y<=KERNEL_SIZE_HALF;++y){vec2 coords=vUv+vec2(x,y)*s;vec4 c=getTexel(coords);float z=(x==0&&y==0)?centerDepth:linearDepth(coords);float d=step(abs(z-centerDepth),DISTANCE_THRESHOLD);result+=c*d;w+=d;}}
|
|
744
|
-
#endif
|
|
745
|
-
gl_FragColor=result/max(w,1.0);
|
|
746
|
-
#else
|
|
747
|
-
#if KERNEL_SIZE == 3 || (KERNEL_SIZE == 5 && MAX_VARYING_VECTORS >= 13)
|
|
748
|
-
for(int i=0;i<KERNEL_SIZE_SQ;++i){result+=c[i];}
|
|
749
|
-
#else
|
|
750
|
-
vec2 s=texelSize*scale;for(int x=-KERNEL_SIZE_HALF;x<=KERNEL_SIZE_HALF;++x){for(int y=-KERNEL_SIZE_HALF;y<=KERNEL_SIZE_HALF;++y){result+=getTexel(uv+vec2(x,y)*s);}}
|
|
751
|
-
#endif
|
|
752
|
-
gl_FragColor=result*INV_KERNEL_SIZE_SQ;
|
|
753
|
-
#endif
|
|
754
|
-
}`,Oa=`uniform vec2 texelSize;uniform float scale;
|
|
755
|
-
#if KERNEL_SIZE == 3
|
|
756
|
-
varying vec2 vUv00,vUv01,vUv02;varying vec2 vUv03,vUv04,vUv05;varying vec2 vUv06,vUv07,vUv08;
|
|
757
|
-
#elif KERNEL_SIZE == 5 && MAX_VARYING_VECTORS >= 13
|
|
758
|
-
varying vec2 vUv00,vUv01,vUv02,vUv03,vUv04;varying vec2 vUv05,vUv06,vUv07,vUv08,vUv09;varying vec2 vUv10,vUv11,vUv12,vUv13,vUv14;varying vec2 vUv15,vUv16,vUv17,vUv18,vUv19;varying vec2 vUv20,vUv21,vUv22,vUv23,vUv24;
|
|
759
|
-
#else
|
|
760
|
-
varying vec2 vUv;
|
|
761
|
-
#endif
|
|
762
|
-
void main(){vec2 uv=position.xy*0.5+0.5;
|
|
763
|
-
#if KERNEL_SIZE == 3
|
|
764
|
-
vec2 s=texelSize*scale;vUv00=uv+s*vec2(-1.0,-1.0);vUv01=uv+s*vec2(0.0,-1.0);vUv02=uv+s*vec2(1.0,-1.0);vUv03=uv+s*vec2(-1.0,0.0);vUv04=uv;vUv05=uv+s*vec2(1.0,0.0);vUv06=uv+s*vec2(-1.0,1.0);vUv07=uv+s*vec2(0.0,1.0);vUv08=uv+s*vec2(1.0,1.0);
|
|
765
|
-
#elif KERNEL_SIZE == 5
|
|
766
|
-
vec2 s=texelSize*scale;vUv00=uv+s*vec2(-2.0,-2.0);vUv01=uv+s*vec2(-1.0,-2.0);vUv02=uv+s*vec2(0.0,-2.0);vUv03=uv+s*vec2(1.0,-2.0);vUv04=uv+s*vec2(2.0,-2.0);vUv05=uv+s*vec2(-2.0,-1.0);vUv06=uv+s*vec2(-1.0,-1.0);vUv07=uv+s*vec2(0.0,-1.0);vUv08=uv+s*vec2(1.0,-1.0);vUv09=uv+s*vec2(2.0,-1.0);vUv10=uv+s*vec2(-2.0,0.0);vUv11=uv+s*vec2(-1.0,0.0);vUv12=uv;vUv13=uv+s*vec2(1.0,0.0);vUv14=uv+s*vec2(2.0,0.0);vUv15=uv+s*vec2(-2.0,1.0);vUv16=uv+s*vec2(-1.0,1.0);vUv17=uv+s*vec2(0.0,1.0);vUv18=uv+s*vec2(1.0,1.0);vUv19=uv+s*vec2(2.0,1.0);vUv20=uv+s*vec2(-2.0,2.0);vUv21=uv+s*vec2(-1.0,2.0);vUv22=uv+s*vec2(0.0,2.0);vUv23=uv+s*vec2(1.0,2.0);vUv24=uv+s*vec2(2.0,2.0);
|
|
767
|
-
#else
|
|
768
|
-
vUv=uv;
|
|
769
|
-
#endif
|
|
770
|
-
gl_Position=vec4(position.xy,1.0,1.0);}`,Lt=class extends i.ShaderMaterial{constructor({bilateral:e=!1,kernelSize:t=5}={}){super({name:"BoxBlurMaterial",defines:{DEPTH_PACKING:"0",DISTANCE_THRESHOLD:"0.1"},uniforms:{inputBuffer:new i.Uniform$1(null),depthBuffer:new i.Uniform$1(null),normalDepthBuffer:new i.Uniform$1(null),texelSize:new i.Uniform$1(new i.Vector2),cameraNearFar:new i.Uniform$1(new i.Vector2),scale:new i.Uniform$1(1)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:La,vertexShader:Oa}),this.bilateral=e,this.kernelSize=t,this.maxVaryingVectors=8}set maxVaryingVectors(e){this.defines.MAX_VARYING_VECTORS=e.toFixed(0)}get kernelSize(){return Number(this.defines.KERNEL_SIZE)}set kernelSize(e){if(e%2===0)throw new Error("The kernel size must be an odd number");this.defines.KERNEL_SIZE=e.toFixed(0),this.defines.KERNEL_SIZE_HALF=Math.floor(e/2).toFixed(0),this.defines.KERNEL_SIZE_SQ=(e**2).toFixed(0),this.defines.KERNEL_SIZE_SQ_HALF=Math.floor(e**2/2).toFixed(0),this.defines.INV_KERNEL_SIZE_SQ=(1/e**2).toFixed(6),this.needsUpdate=!0}get scale(){return this.uniforms.scale.value}set scale(e){this.uniforms.scale.value=e}get near(){return this.uniforms.cameraNearFar.value.x}get far(){return this.uniforms.cameraNearFar.value.y}set inputBuffer(e){this.uniforms.inputBuffer.value=e}set depthBuffer(e){this.uniforms.depthBuffer.value=e}set normalDepthBuffer(e){this.uniforms.normalDepthBuffer.value=e,e!==null?this.defines.NORMAL_DEPTH="1":delete this.defines.NORMAL_DEPTH,this.needsUpdate=!0}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}get bilateral(){return this.defines.BILATERAL!==void 0}set bilateral(e){e!==null?this.defines.BILATERAL="1":delete this.defines.BILATERAL,this.needsUpdate=!0}get worldDistanceThreshold(){return-j(Number(this.defines.DISTANCE_THRESHOLD),this.near,this.far)}set worldDistanceThreshold(e){const t=W(-e,this.near,this.far);this.defines.DISTANCE_THRESHOLD=t.toFixed(12),this.needsUpdate=!0}copyCameraSettings(e){e&&(this.uniforms.cameraNearFar.value.set(e.near,e.far),e instanceof i.PerspectiveCamera?this.defines.PERSPECTIVE_CAMERA="1":delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},Na=`#include <packing>
|
|
771
|
-
varying vec2 vUv;
|
|
772
|
-
#ifdef NORMAL_DEPTH
|
|
773
|
-
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
774
|
-
uniform highp sampler2D normalDepthBuffer;
|
|
775
|
-
#else
|
|
776
|
-
uniform mediump sampler2D normalDepthBuffer;
|
|
777
|
-
#endif
|
|
778
|
-
float readDepth(const in vec2 uv){return texture2D(normalDepthBuffer,uv).a;}
|
|
779
|
-
#else
|
|
780
|
-
#if INPUT_DEPTH_PACKING == 3201
|
|
781
|
-
uniform lowp sampler2D depthBuffer;
|
|
782
|
-
#elif defined(GL_FRAGMENT_PRECISION_HIGH)
|
|
783
|
-
uniform highp sampler2D depthBuffer;
|
|
784
|
-
#else
|
|
785
|
-
uniform mediump sampler2D depthBuffer;
|
|
786
|
-
#endif
|
|
787
|
-
float readDepth(const in vec2 uv){
|
|
788
|
-
#if INPUT_DEPTH_PACKING == 3201
|
|
789
|
-
return unpackRGBAToDepth(texture2D(depthBuffer,uv));
|
|
790
|
-
#else
|
|
791
|
-
return texture2D(depthBuffer,uv).r;
|
|
792
|
-
#endif
|
|
793
|
-
}
|
|
794
|
-
#endif
|
|
795
|
-
void main(){
|
|
796
|
-
#if INPUT_DEPTH_PACKING == OUTPUT_DEPTH_PACKING
|
|
797
|
-
gl_FragColor=texture2D(depthBuffer,vUv);
|
|
798
|
-
#else
|
|
799
|
-
float depth=readDepth(vUv);
|
|
800
|
-
#if OUTPUT_DEPTH_PACKING == 3201
|
|
801
|
-
gl_FragColor=(depth==1.0)?vec4(1.0):packDepthToRGBA(depth);
|
|
802
|
-
#else
|
|
803
|
-
gl_FragColor=vec4(vec3(depth),1.0);
|
|
804
|
-
#endif
|
|
805
|
-
#endif
|
|
806
|
-
}`,Ha=`varying vec2 vUv;
|
|
807
|
-
#if DEPTH_COPY_MODE == 1
|
|
808
|
-
uniform vec2 texelPosition;
|
|
809
|
-
#endif
|
|
810
|
-
void main(){
|
|
811
|
-
#if DEPTH_COPY_MODE == 1
|
|
812
|
-
vUv=texelPosition;
|
|
813
|
-
#else
|
|
814
|
-
vUv=position.xy*0.5+0.5;
|
|
815
|
-
#endif
|
|
816
|
-
gl_Position=vec4(position.xy,1.0,1.0);}`,Ot=class extends i.ShaderMaterial{constructor(){super({name:"DepthCopyMaterial",defines:{INPUT_DEPTH_PACKING:"0",OUTPUT_DEPTH_PACKING:"0",DEPTH_COPY_MODE:"0"},uniforms:{depthBuffer:new i.Uniform$1(null),texelPosition:new i.Uniform$1(new i.Vector2)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Na,vertexShader:Ha}),this.depthCopyMode=oe.FULL}get depthBuffer(){return this.uniforms.depthBuffer.value}set depthBuffer(e){this.uniforms.depthBuffer.value=e}set inputDepthPacking(e){this.defines.INPUT_DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}get outputDepthPacking(){return Number(this.defines.OUTPUT_DEPTH_PACKING)}set outputDepthPacking(e){this.defines.OUTPUT_DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=i.BasicDepthPacking){this.depthBuffer=e,this.inputDepthPacking=t}getInputDepthPacking(){return Number(this.defines.INPUT_DEPTH_PACKING)}setInputDepthPacking(e){this.defines.INPUT_DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}getOutputDepthPacking(){return Number(this.defines.OUTPUT_DEPTH_PACKING)}setOutputDepthPacking(e){this.defines.OUTPUT_DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}get texelPosition(){return this.uniforms.texelPosition.value}getTexelPosition(){return this.uniforms.texelPosition.value}setTexelPosition(e){this.uniforms.texelPosition.value=e}get mode(){return this.depthCopyMode}set mode(e){this.depthCopyMode=e,this.defines.DEPTH_COPY_MODE=e.toFixed(0),this.needsUpdate=!0}getMode(){return this.mode}setMode(e){this.mode=e}},Ga=`#include <common>
|
|
817
|
-
#include <packing>
|
|
818
|
-
#include <dithering_pars_fragment>
|
|
819
|
-
#define packFloatToRGBA(v) packDepthToRGBA(v)
|
|
820
|
-
#define unpackRGBAToFloat(v) unpackRGBAToDepth(v)
|
|
821
|
-
#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
822
|
-
uniform mediump sampler2D inputBuffer;
|
|
823
|
-
#else
|
|
824
|
-
uniform lowp sampler2D inputBuffer;
|
|
825
|
-
#endif
|
|
826
|
-
#if DEPTH_PACKING == 3201
|
|
827
|
-
uniform lowp sampler2D depthBuffer;
|
|
828
|
-
#elif defined(GL_FRAGMENT_PRECISION_HIGH)
|
|
829
|
-
uniform highp sampler2D depthBuffer;
|
|
830
|
-
#else
|
|
831
|
-
uniform mediump sampler2D depthBuffer;
|
|
832
|
-
#endif
|
|
833
|
-
uniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;vec4 sRGBToLinear(const in vec4 value){return vec4(mix(pow(value.rgb*0.9478672986+vec3(0.0521327014),vec3(2.4)),value.rgb*0.0773993808,vec3(lessThanEqual(value.rgb,vec3(0.04045)))),value.a);}float readDepth(const in vec2 uv){
|
|
834
|
-
#if DEPTH_PACKING == 3201
|
|
835
|
-
return unpackRGBAToDepth(texture2D(depthBuffer,uv));
|
|
836
|
-
#else
|
|
837
|
-
return texture2D(depthBuffer,uv).r;
|
|
838
|
-
#endif
|
|
839
|
-
}float getViewZ(const in float depth){
|
|
840
|
-
#ifdef PERSPECTIVE_CAMERA
|
|
841
|
-
return perspectiveDepthToViewZ(depth,cameraNear,cameraFar);
|
|
842
|
-
#else
|
|
843
|
-
return orthographicDepthToViewZ(depth,cameraNear,cameraFar);
|
|
844
|
-
#endif
|
|
845
|
-
}vec3 RGBToHCV(const in vec3 RGB){vec4 P=mix(vec4(RGB.bg,-1.0,2.0/3.0),vec4(RGB.gb,0.0,-1.0/3.0),step(RGB.b,RGB.g));vec4 Q=mix(vec4(P.xyw,RGB.r),vec4(RGB.r,P.yzx),step(P.x,RGB.r));float C=Q.x-min(Q.w,Q.y);float H=abs((Q.w-Q.y)/(6.0*C+EPSILON)+Q.z);return vec3(H,C,Q.x);}vec3 RGBToHSL(const in vec3 RGB){vec3 HCV=RGBToHCV(RGB);float L=HCV.z-HCV.y*0.5;float S=HCV.y/(1.0-abs(L*2.0-1.0)+EPSILON);return vec3(HCV.x,S,L);}vec3 HueToRGB(const in float H){float R=abs(H*6.0-3.0)-1.0;float G=2.0-abs(H*6.0-2.0);float B=2.0-abs(H*6.0-4.0);return clamp(vec3(R,G,B),0.0,1.0);}vec3 HSLToRGB(const in vec3 HSL){vec3 RGB=HueToRGB(HSL.x);float C=(1.0-abs(2.0*HSL.z-1.0))*HSL.y;return(RGB-0.5)*C+HSL.z;}FRAGMENT_HEAD void main(){FRAGMENT_MAIN_UV vec4 color0=texture2D(inputBuffer,UV);vec4 color1=vec4(0.0);FRAGMENT_MAIN_IMAGE color0.a=clamp(color0.a,0.0,1.0);gl_FragColor=color0;
|
|
846
|
-
#ifdef ENCODE_OUTPUT
|
|
847
|
-
#include <colorspace_fragment>
|
|
848
|
-
#endif
|
|
849
|
-
#include <dithering_fragment>
|
|
850
|
-
}`,za="uniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;VERTEX_HEAD void main(){vUv=position.xy*0.5+0.5;VERTEX_MAIN_SUPPORT gl_Position=vec4(position.xy,1.0,1.0);}",Nt=class extends i.ShaderMaterial{constructor(e,t,r,a,s=!1){super({name:"EffectMaterial",defines:{THREE_REVISION:i.REVISION.replace(/\D+/g,""),DEPTH_PACKING:"0",ENCODE_OUTPUT:"1"},uniforms:{inputBuffer:new i.Uniform$1(null),depthBuffer:new i.Uniform$1(null),resolution:new i.Uniform$1(new i.Vector2),texelSize:new i.Uniform$1(new i.Vector2),cameraNear:new i.Uniform$1(.3),cameraFar:new i.Uniform$1(1e3),aspect:new i.Uniform$1(1),time:new i.Uniform$1(0)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,dithering:s}),e&&this.setShaderParts(e),t&&this.setDefines(t),r&&this.setUniforms(r),this.copyCameraSettings(a)}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}get depthBuffer(){return this.uniforms.depthBuffer.value}set depthBuffer(e){this.uniforms.depthBuffer.value=e}get depthPacking(){return Number(this.defines.DEPTH_PACKING)}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=i.BasicDepthPacking){this.depthBuffer=e,this.depthPacking=t}setShaderData(e){this.setShaderParts(e.shaderParts),this.setDefines(e.defines),this.setUniforms(e.uniforms),this.setExtensions(e.extensions)}setShaderParts(e){return this.fragmentShader=Ga.replace(S.FRAGMENT_HEAD,e.get(S.FRAGMENT_HEAD)||"").replace(S.FRAGMENT_MAIN_UV,e.get(S.FRAGMENT_MAIN_UV)||"").replace(S.FRAGMENT_MAIN_IMAGE,e.get(S.FRAGMENT_MAIN_IMAGE)||""),this.vertexShader=za.replace(S.VERTEX_HEAD,e.get(S.VERTEX_HEAD)||"").replace(S.VERTEX_MAIN_SUPPORT,e.get(S.VERTEX_MAIN_SUPPORT)||""),this.needsUpdate=!0,this}setDefines(e){for(const t of e.entries())this.defines[t[0]]=t[1];return this.needsUpdate=!0,this}setUniforms(e){for(const t of e.entries())this.uniforms[t[0]]=t[1];return this}setExtensions(e){this.extensions={};for(const t of e)this.extensions[t]=!0;return this}get encodeOutput(){return this.defines.ENCODE_OUTPUT!==void 0}set encodeOutput(e){this.encodeOutput!==e&&(e?this.defines.ENCODE_OUTPUT="1":delete this.defines.ENCODE_OUTPUT,this.needsUpdate=!0)}isOutputEncodingEnabled(e){return this.encodeOutput}setOutputEncodingEnabled(e){this.encodeOutput=e}get time(){return this.uniforms.time.value}set time(e){this.uniforms.time.value=e}setDeltaTime(e){this.uniforms.time.value+=e}adoptCameraSettings(e){this.copyCameraSettings(e)}copyCameraSettings(e){e&&(this.uniforms.cameraNear.value=e.near,this.uniforms.cameraFar.value=e.far,e instanceof i.PerspectiveCamera?this.defines.PERSPECTIVE_CAMERA="1":delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}setSize(e,t){const r=this.uniforms;r.resolution.value.set(e,t),r.texelSize.value.set(1/e,1/t),r.aspect.value=e/t}static get Section(){return S}},ka=`#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
851
|
-
uniform mediump sampler2D inputBuffer;
|
|
852
|
-
#else
|
|
853
|
-
uniform lowp sampler2D inputBuffer;
|
|
854
|
-
#endif
|
|
855
|
-
uniform vec2 kernel[STEPS];varying vec2 vOffset;varying vec2 vUv;void main(){vec4 result=texture2D(inputBuffer,vUv)*kernel[0].y;for(int i=1;i<STEPS;++i){vec2 offset=kernel[i].x*vOffset;vec4 c0=texture2D(inputBuffer,vUv+offset);vec4 c1=texture2D(inputBuffer,vUv-offset);result+=(c0+c1)*kernel[i].y;}gl_FragColor=result;
|
|
856
|
-
#include <colorspace_fragment>
|
|
857
|
-
}`,Qa="uniform vec2 texelSize;uniform vec2 direction;uniform float scale;varying vec2 vOffset;varying vec2 vUv;void main(){vOffset=direction*texelSize*scale;vUv=position.xy*0.5+0.5;gl_Position=vec4(position.xy,1.0,1.0);}",Ht=class extends i.ShaderMaterial{constructor({kernelSize:e=35}={}){super({name:"GaussianBlurMaterial",uniforms:{inputBuffer:new i.Uniform$1(null),texelSize:new i.Uniform$1(new i.Vector2),direction:new i.Uniform$1(new i.Vector2),kernel:new i.Uniform$1(null),scale:new i.Uniform$1(1)},blending:i.NoBlending,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:ka,vertexShader:Qa}),this._kernelSize=0,this.kernelSize=e}set inputBuffer(e){this.uniforms.inputBuffer.value=e}get kernelSize(){return this._kernelSize}set kernelSize(e){this._kernelSize=e,this.generateKernel(e)}get direction(){return this.uniforms.direction.value}get scale(){return this.uniforms.scale.value}set scale(e){this.uniforms.scale.value=e}generateKernel(e){const t=new ht(e),r=t.linearSteps,a=new Float64Array(r*2);for(let s=0,o=0;s<r;++s)a[o++]=t.linearOffsets[s],a[o++]=t.linearWeights[s];this.uniforms.kernel.value=a,this.defines.STEPS=r.toFixed(0),this.needsUpdate=!0}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},Va=class extends M{constructor({kernelSize:e=5,iterations:t=1,bilateral:r=!1,resolutionScale:a=1,resolutionX:s=A.AUTO_SIZE,resolutionY:o=A.AUTO_SIZE}={}){super("BoxBlurPass"),this.needsDepthTexture=r,this.renderTargetA=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTargetA.texture.name="Blur.Target.A",this.renderTargetB=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTargetB.texture.name="Blur.Target.B",this.blurMaterial=new Lt({bilateral:r,kernelSize:e}),this.copyMaterial=new ve;const n=this.resolution=new A(this,s,o,a);n.addEventListener("change",l=>this.setSize(n.baseWidth,n.baseHeight)),this.iterations=t}set mainCamera(e){this.blurMaterial.copyCameraSettings(e)}setDepthTexture(e,t=i.BasicDepthPacking){this.blurMaterial.depthBuffer=e,this.blurMaterial.depthPacking=t}render(e,t,r,a,s){const o=this.scene,n=this.camera,l=this.renderTargetA,u=this.renderTargetB,c=this.blurMaterial;this.fullscreenMaterial=c;let f=t;for(let h=0,d=Math.max(this.iterations,1);h<d;++h){const v=(h&1)===0?l:u;c.inputBuffer=f.texture,e.setRenderTarget(v),e.render(o,n),f=v}this.copyMaterial.inputBuffer=f.texture,this.fullscreenMaterial=this.copyMaterial,e.setRenderTarget(this.renderToScreen?null:r),e.render(o,n)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t);const a=r.width,s=r.height;this.renderTargetA.setSize(a,s),this.renderTargetB.setSize(a,s),this.blurMaterial.setSize(e,t)}initialize(e,t,r){e!==null&&(this.blurMaterial.maxVaryingVectors=e.capabilities.maxVaryings),r!==void 0&&(this.renderTargetA.texture.type=r,this.renderTargetB.texture.type=r,r!==i.UnsignedByteType?this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1":e!==null&&e.outputColorSpace===i.SRGBColorSpace&&(this.renderTargetA.texture.colorSpace=i.SRGBColorSpace,this.renderTargetB.texture.colorSpace=i.SRGBColorSpace))}},ze=class extends M{constructor({depthPacking:e=i.RGBADepthPacking}={}){super("DepthCopyPass");const t=new Ot;t.outputDepthPacking=e,this.fullscreenMaterial=t,this.needsDepthTexture=!0,this.needsSwap=!1,this.renderTarget=new i.WebGLRenderTarget(1,1,{type:e===i.RGBADepthPacking?i.UnsignedByteType:i.FloatType,minFilter:i.NearestFilter,magFilter:i.NearestFilter,depthBuffer:!1}),this.renderTarget.texture.name="DepthCopyPass.Target"}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}get depthPacking(){return this.fullscreenMaterial.outputDepthPacking}getDepthPacking(){return this.fullscreenMaterial.outputDepthPacking}setDepthTexture(e,t=i.BasicDepthPacking){this.fullscreenMaterial.depthBuffer=e,this.fullscreenMaterial.inputDepthPacking=t}render(e,t,r,a,s){e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){this.renderTarget.setSize(e,t)}},Wa=Number(i.REVISION.replace(/\D+/g,"")),J=255/256,Ya=new Float32Array([J/256**3,J/256**2,J/256,J]),Ka=new Float32Array([J,J/256,J/256**2,1/256**3]);function Xa(e){const t=Wa>=167?Ka:Ya;return(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3])/255}var Za=class extends ze{constructor({depthPacking:e=i.RGBADepthPacking,mode:t=oe.SINGLE}={}){if(e!==i.RGBADepthPacking&&e!==i.BasicDepthPacking)throw new Error(`Unsupported depth packing: ${e}`);super({depthPacking:e}),this.name="DepthPickingPass",this.fullscreenMaterial.mode=t,this.pixelBuffer=e===i.RGBADepthPacking?new Uint8Array(4):new Float32Array(4),this.callback=null}readDepth(e){return this.fullscreenMaterial.texelPosition.set(e.x*.5+.5,e.y*.5+.5),new Promise(t=>{this.callback=t})}render(e,t,r,a,s){const o=this.fullscreenMaterial,n=o.mode;if(n===oe.FULL&&super.render(e),this.callback!==null){const l=this.renderTarget,u=this.pixelBuffer,c=l.texture.type!==i.FloatType;let f=0,h=0;if(n===oe.SINGLE)super.render(e);else{const d=o.texelPosition;f=Math.round(d.x*l.width),h=Math.round(d.y*l.height)}e.readRenderTargetPixels(l,f,h,1,1,u),this.callback(c?Xa(u):u[0]),this.callback=null}}setSize(e,t){this.fullscreenMaterial.mode===oe.FULL&&super.setSize(e,t)}};function tt(e,t,r){for(const a of t){const s="$1"+e+a.charAt(0).toUpperCase()+a.slice(1),o=new RegExp("([^\\.])(\\b"+a+"\\b)","g");for(const n of r.entries())n[1]!==null&&r.set(n[0],n[1].replace(o,s))}}function ja(e,t,r){let a=t.getFragmentShader(),s=t.getVertexShader();const o=a!==void 0&&/mainImage/.test(a),n=a!==void 0&&/mainUv/.test(a);if(r.attributes|=t.getAttributes(),a===void 0)throw new Error(`Missing fragment shader (${t.name})`);if(n&&(r.attributes&I.CONVOLUTION)!==0)throw new Error(`Effects that transform UVs are incompatible with convolution effects (${t.name})`);if(!o&&!n)throw new Error(`Could not find mainImage or mainUv function (${t.name})`);{const l=/\w+\s+(\w+)\([\w\s,]*\)\s*{/g,u=r.shaderParts;let c=u.get(S.FRAGMENT_HEAD)||"",f=u.get(S.FRAGMENT_MAIN_UV)||"",h=u.get(S.FRAGMENT_MAIN_IMAGE)||"",d=u.get(S.VERTEX_HEAD)||"",v=u.get(S.VERTEX_MAIN_SUPPORT)||"";const g=new Set,m=new Set;if(n&&(f+=` ${e}MainUv(UV);
|
|
858
|
-
`,r.uvTransformation=!0),s!==null&&/mainSupport/.test(s)){const D=/mainSupport *\([\w\s]*?uv\s*?\)/.test(s);v+=` ${e}MainSupport(`,v+=D?`vUv);
|
|
859
|
-
`:`);
|
|
860
|
-
`;for(const x of s.matchAll(/(?:varying\s+\w+\s+([\S\s]*?);)/g))for(const R of x[1].split(/\s*,\s*/))r.varyings.add(R),g.add(R),m.add(R);for(const x of s.matchAll(l))m.add(x[1])}for(const D of a.matchAll(l))m.add(D[1]);for(const D of t.defines.keys())m.add(D.replace(/\([\w\s,]*\)/g,""));for(const D of t.uniforms.keys())m.add(D);m.delete("while"),m.delete("for"),m.delete("if"),t.uniforms.forEach((D,x)=>r.uniforms.set(e+x.charAt(0).toUpperCase()+x.slice(1),D)),t.defines.forEach((D,x)=>r.defines.set(e+x.charAt(0).toUpperCase()+x.slice(1),D));const T=new Map([["fragment",a],["vertex",s]]);tt(e,m,r.defines),tt(e,m,T),a=T.get("fragment"),s=T.get("vertex");const w=t.blendMode;if(r.blendModes.set(w.blendFunction,w),o){t.inputColorSpace!==null&&t.inputColorSpace!==r.colorSpace&&(h+=t.inputColorSpace===i.SRGBColorSpace?`color0 = sRGBTransferOETF(color0);
|
|
861
|
-
`:`color0 = sRGBToLinear(color0);
|
|
862
|
-
`),t.outputColorSpace!==i.NoColorSpace?r.colorSpace=t.outputColorSpace:t.inputColorSpace!==null&&(r.colorSpace=t.inputColorSpace);const D=/MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;h+=`${e}MainImage(color0, UV, `,(r.attributes&I.DEPTH)!==0&&D.test(a)&&(h+="depth, ",r.readDepth=!0),h+=`color1);
|
|
863
|
-
`;const x=e+"BlendOpacity";r.uniforms.set(x,w.opacity),h+=`color0 = blend${w.blendFunction}(color0, color1, ${x});
|
|
864
|
-
|
|
865
|
-
`,c+=`uniform float ${x};
|
|
866
|
-
|
|
867
|
-
`}if(c+=a+`
|
|
868
|
-
`,s!==null&&(d+=s+`
|
|
869
|
-
`),u.set(S.FRAGMENT_HEAD,c),u.set(S.FRAGMENT_MAIN_UV,f),u.set(S.FRAGMENT_MAIN_IMAGE,h),u.set(S.VERTEX_HEAD,d),u.set(S.VERTEX_MAIN_SUPPORT,v),t.extensions!==null)for(const D of t.extensions)r.extensions.add(D)}}var Ja=class extends M{constructor(e,...t){super("EffectPass"),this.fullscreenMaterial=new Nt(null,null,null,e),this.listener=r=>this.handleEvent(r),this.effects=[],this.setEffects(t),this.skipRendering=!1,this.minTime=1,this.maxTime=Number.POSITIVE_INFINITY,this.timeScale=1}set mainScene(e){for(const t of this.effects)t.mainScene=e}set mainCamera(e){this.fullscreenMaterial.copyCameraSettings(e);for(const t of this.effects)t.mainCamera=e}get encodeOutput(){return this.fullscreenMaterial.encodeOutput}set encodeOutput(e){this.fullscreenMaterial.encodeOutput=e}get dithering(){return this.fullscreenMaterial.dithering}set dithering(e){const t=this.fullscreenMaterial;t.dithering=e,t.needsUpdate=!0}setEffects(e){for(const t of this.effects)t.removeEventListener("change",this.listener);this.effects=e.sort((t,r)=>r.attributes-t.attributes);for(const t of this.effects)t.addEventListener("change",this.listener)}updateMaterial(){const e=new ft;let t=0;for(const n of this.effects)if(n.blendMode.blendFunction===p.DST)e.attributes|=n.getAttributes()&I.DEPTH;else{if((e.attributes&n.getAttributes()&I.CONVOLUTION)!==0)throw new Error(`Convolution effects cannot be merged (${n.name})`);ja("e"+t++,n,e)}let r=e.shaderParts.get(S.FRAGMENT_HEAD),a=e.shaderParts.get(S.FRAGMENT_MAIN_IMAGE),s=e.shaderParts.get(S.FRAGMENT_MAIN_UV);const o=/\bblend\b/g;for(const n of e.blendModes.values())r+=n.getShaderCode().replace(o,`blend${n.blendFunction}`)+`
|
|
870
|
-
`;(e.attributes&I.DEPTH)!==0?(e.readDepth&&(a=`float depth = readDepth(UV);
|
|
871
|
-
|
|
872
|
-
`+a),this.needsDepthTexture=this.getDepthTexture()===null):this.needsDepthTexture=!1,e.colorSpace===i.SRGBColorSpace&&(a+=`color0 = sRGBToLinear(color0);
|
|
873
|
-
`),e.uvTransformation?(s=`vec2 transformedUv = vUv;
|
|
874
|
-
`+s,e.defines.set("UV","transformedUv")):e.defines.set("UV","vUv"),e.shaderParts.set(S.FRAGMENT_HEAD,r),e.shaderParts.set(S.FRAGMENT_MAIN_IMAGE,a),e.shaderParts.set(S.FRAGMENT_MAIN_UV,s);for(const[n,l]of e.shaderParts)l!==null&&e.shaderParts.set(n,l.trim().replace(/^#/,`
|
|
875
|
-
#`));this.skipRendering=t===0,this.needsSwap=!this.skipRendering,this.fullscreenMaterial.setShaderData(e)}recompile(){this.updateMaterial()}getDepthTexture(){return this.fullscreenMaterial.depthBuffer}setDepthTexture(e,t=i.BasicDepthPacking){this.fullscreenMaterial.depthBuffer=e,this.fullscreenMaterial.depthPacking=t;for(const r of this.effects)r.setDepthTexture(e,t)}render(e,t,r,a,s){for(const o of this.effects)o.update(e,t,a);if(!this.skipRendering||this.renderToScreen){const o=this.fullscreenMaterial;o.inputBuffer=t.texture,o.time+=a*this.timeScale,e.setRenderTarget(this.renderToScreen?null:r),e.render(this.scene,this.camera)}}setSize(e,t){this.fullscreenMaterial.setSize(e,t);for(const r of this.effects)r.setSize(e,t)}initialize(e,t,r){this.renderer=e;for(const a of this.effects)a.initialize(e,t,r);this.updateMaterial(),r!==void 0&&r!==i.UnsignedByteType&&(this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1")}dispose(){super.dispose();for(const e of this.effects)e.removeEventListener("change",this.listener),e.dispose()}handleEvent(e){switch(e.type){case"change":this.recompile();break}}},qa=class extends M{constructor({kernelSize:e=35,iterations:t=1,resolutionScale:r=1,resolutionX:a=A.AUTO_SIZE,resolutionY:s=A.AUTO_SIZE}={}){super("GaussianBlurPass"),this.renderTargetA=new i.WebGLRenderTarget(1,1,{depthBuffer:!1}),this.renderTargetA.texture.name="Blur.Target.A",this.renderTargetB=this.renderTargetA.clone(),this.renderTargetB.texture.name="Blur.Target.B",this.blurMaterial=new Ht({kernelSize:e}),this.copyMaterial=new ve,this.copyMaterial.inputBuffer=this.renderTargetB.texture;const o=this.resolution=new A(this,a,s,r);o.addEventListener("change",n=>this.setSize(o.baseWidth,o.baseHeight)),this.iterations=t}render(e,t,r,a,s){const o=this.scene,n=this.camera,l=this.renderTargetA,u=this.renderTargetB,c=this.blurMaterial;this.fullscreenMaterial=c;let f=t;for(let h=0,d=Math.max(this.iterations,1);h<d;++h)c.direction.set(1,0),c.inputBuffer=f.texture,e.setRenderTarget(l),e.render(o,n),c.direction.set(0,1),c.inputBuffer=l.texture,e.setRenderTarget(u),e.render(o,n),h===0&&d>1&&(f=u);this.fullscreenMaterial=this.copyMaterial,e.setRenderTarget(this.renderToScreen?null:r),e.render(o,n)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t);const a=r.width,s=r.height;this.renderTargetA.setSize(a,s),this.renderTargetB.setSize(a,s),this.blurMaterial.setSize(e,t)}initialize(e,t,r){r!==void 0&&(this.renderTargetA.texture.type=r,this.renderTargetB.texture.type=r,r!==i.UnsignedByteType?(this.blurMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1",this.copyMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1"):e!==null&&e.outputColorSpace===i.SRGBColorSpace&&(this.renderTargetA.texture.colorSpace=i.SRGBColorSpace,this.renderTargetB.texture.colorSpace=i.SRGBColorSpace))}},_a=class extends M{constructor(e){super("LambdaPass",null,null),this.needsSwap=!1,this.f=e}render(e,t,r,a,s){this.f()}},$a=class extends M{constructor(e,t,{renderTarget:r,resolutionScale:a=1,width:s=A.AUTO_SIZE,height:o=A.AUTO_SIZE,resolutionX:n=s,resolutionY:l=o}={}){super("NormalPass"),this.needsSwap=!1,this.renderPass=new pe(e,t,new i.MeshNormalMaterial);const u=this.renderPass;u.ignoreBackground=!0,u.skipShadowMapUpdate=!0;const c=u.getClearPass();c.overrideClearColor=new i.Color(7829503),c.overrideClearAlpha=1,this.renderTarget=r,this.renderTarget===void 0&&(this.renderTarget=new i.WebGLRenderTarget(1,1,{minFilter:i.NearestFilter,magFilter:i.NearestFilter}),this.renderTarget.texture.name="NormalPass.Target");const f=this.resolution=new A(this,n,l,a);f.addEventListener("change",h=>this.setSize(f.baseWidth,f.baseHeight))}set mainScene(e){this.renderPass.mainScene=e}set mainCamera(e){this.renderPass.mainCamera=e}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}getResolution(){return this.resolution}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}render(e,t,r,a,s){const o=this.renderToScreen?null:this.renderTarget;this.renderPass.render(e,o,o)}setSize(e,t){const r=this.resolution;r.setBaseSize(e,t),this.renderTarget.setSize(r.width,r.height)}},it=[new Float32Array(3),new Float32Array(3)],y=[new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array(3)],te=[[new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,0,1]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([1,0,1]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([0,1,1]),new Float32Array([1,1,1])],[new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([0,1,1]),new Float32Array([1,1,1])]];function xe(e,t,r,a){const s=r[0]-t[0],o=r[1]-t[1],n=r[2]-t[2],l=e[0]-t[0],u=e[1]-t[1],c=e[2]-t[2],f=o*c-n*u,h=n*l-s*c,d=s*u-o*l,v=Math.sqrt(f*f+h*h+d*d),g=v*.5,m=f/v,T=h/v,w=d/v,D=-(e[0]*m+e[1]*T+e[2]*w),x=a[0]*m+a[1]*T+a[2]*w;return Math.abs(x+D)*g/3}function fe(e,t,r,a,s,o){const n=(r+a*t+s*t*t)*4;o[0]=e[n+0],o[1]=e[n+1],o[2]=e[n+2]}function es(e,t,r,a,s,o){const n=r*(t-1),l=a*(t-1),u=s*(t-1),c=Math.floor(n),f=Math.floor(l),h=Math.floor(u),d=Math.ceil(n),v=Math.ceil(l),g=Math.ceil(u),m=n-c,T=l-f,w=u-h;if(c===n&&f===l&&h===u)fe(e,t,n,l,u,o);else{let D;m>=T&&T>=w?D=te[0]:m>=w&&w>=T?D=te[1]:w>=m&&m>=T?D=te[2]:T>=m&&m>=w?D=te[3]:T>=w&&w>=m?D=te[4]:w>=T&&T>=m&&(D=te[5]);const[x,R,H,z]=D,k=it[0];k[0]=m,k[1]=T,k[2]=w;const B=it[1],$=d-c,ee=v-f,Q=g-h;B[0]=$*x[0]+c,B[1]=ee*x[1]+f,B[2]=Q*x[2]+h,fe(e,t,B[0],B[1],B[2],y[0]),B[0]=$*R[0]+c,B[1]=ee*R[1]+f,B[2]=Q*R[2]+h,fe(e,t,B[0],B[1],B[2],y[1]),B[0]=$*H[0]+c,B[1]=ee*H[1]+f,B[2]=Q*H[2]+h,fe(e,t,B[0],B[1],B[2],y[2]),B[0]=$*z[0]+c,B[1]=ee*z[1]+f,B[2]=Q*z[2]+h,fe(e,t,B[0],B[1],B[2],y[3]);const X=xe(R,H,z,k)*6,U=xe(x,H,z,k)*6,ge=xe(x,R,z,k)*6,ye=xe(x,R,H,k)*6;y[0][0]*=X,y[0][1]*=X,y[0][2]*=X,y[1][0]*=U,y[1][1]*=U,y[1][2]*=U,y[2][0]*=ge,y[2][1]*=ge,y[2][2]*=ge,y[3][0]*=ye,y[3][1]*=ye,y[3][2]*=ye,o[0]=y[0][0]+y[1][0]+y[2][0]+y[3][0],o[1]=y[0][1]+y[1][1]+y[2][1]+y[3][1],o[2]=y[0][2]+y[1][2]+y[2][2]+y[3][2]}}var ts=class{static expand(e,t){const r=Math.cbrt(e.length/4),a=new Float32Array(3),s=new e.constructor(t**3*4),o=e instanceof Uint8Array?255:1,n=t**2,l=1/(t-1);for(let u=0;u<t;++u)for(let c=0;c<t;++c)for(let f=0;f<t;++f){const h=f*l,d=c*l,v=u*l,g=Math.round(f+c*t+u*n)*4;es(e,r,h,d,v,a),s[g+0]=a[0],s[g+1]=a[1],s[g+2]=a[2],s[g+3]=o}return s}},ue=[new Float32Array(2),new Float32Array(2)],ie=16,Ie=20,re=30,is=32,Re=new Float32Array([0,-.25,.25,-.125,.125,-.375,.375]),rt=[new Float32Array([0,0]),new Float32Array([.25,-.25]),new Float32Array([-.25,.25]),new Float32Array([.125,-.125]),new Float32Array([-.125,.125])],rs=[new Uint8Array([0,0]),new Uint8Array([3,0]),new Uint8Array([0,3]),new Uint8Array([3,3]),new Uint8Array([1,0]),new Uint8Array([4,0]),new Uint8Array([1,3]),new Uint8Array([4,3]),new Uint8Array([0,1]),new Uint8Array([3,1]),new Uint8Array([0,4]),new Uint8Array([3,4]),new Uint8Array([1,1]),new Uint8Array([4,1]),new Uint8Array([1,4]),new Uint8Array([4,4])],Gt=[new Uint8Array([0,0]),new Uint8Array([1,0]),new Uint8Array([0,2]),new Uint8Array([1,2]),new Uint8Array([2,0]),new Uint8Array([3,0]),new Uint8Array([2,2]),new Uint8Array([3,2]),new Uint8Array([0,1]),new Uint8Array([1,1]),new Uint8Array([0,3]),new Uint8Array([1,3]),new Uint8Array([2,1]),new Uint8Array([3,1]),new Uint8Array([2,3]),new Uint8Array([3,3])];function De(e,t,r){return e+(t-e)*r}function as(e){return Math.min(Math.max(e,0),1)}function at(e){const t=ue[0],r=ue[1],a=Math.sqrt(t[0]*2)*.5,s=Math.sqrt(t[1]*2)*.5,o=Math.sqrt(r[0]*2)*.5,n=Math.sqrt(r[1]*2)*.5,l=as(e/is);t[0]=De(a,t[0],l),t[1]=De(s,t[1],l),r[0]=De(o,r[0],l),r[1]=De(n,r[1],l)}function P(e,t,r,a,s,o){const n=r-e,l=a-t,u=s,c=s+1,f=t+l*(u-e)/n,h=t+l*(c-e)/n;if(u>=e&&u<r||c>e&&c<=r)if(Math.sign(f)===Math.sign(h)||Math.abs(f)<1e-4||Math.abs(h)<1e-4){const d=(f+h)/2;d<0?(o[0]=Math.abs(d),o[1]=0):(o[0]=0,o[1]=Math.abs(d))}else{const d=-t*n/l+e,v=Math.trunc(d),g=d>e?f*(d-v)/2:0,m=d<r?h*(1-(d-v))/2:0;(Math.abs(g)>Math.abs(m)?g:-m)<0?(o[0]=Math.abs(g),o[1]=Math.abs(m)):(o[0]=Math.abs(m),o[1]=Math.abs(g))}else o[0]=0,o[1]=0;return o}function ss(e,t,r,a,s){const o=ue[0],n=ue[1],l=.5+a,u=.5+a-1,c=t+r+1;switch(e){case 0:{s[0]=0,s[1]=0;break}case 1:{t<=r?P(0,u,c/2,0,t,s):(s[0]=0,s[1]=0);break}case 2:{t>=r?P(c/2,0,c,u,t,s):(s[0]=0,s[1]=0);break}case 3:{P(0,u,c/2,0,t,o),P(c/2,0,c,u,t,n),at(c),s[0]=o[0]+n[0],s[1]=o[1]+n[1];break}case 4:{t<=r?P(0,l,c/2,0,t,s):(s[0]=0,s[1]=0);break}case 5:{s[0]=0,s[1]=0;break}case 6:{Math.abs(a)>0?(P(0,l,c,u,t,o),P(0,l,c/2,0,t,n),P(c/2,0,c,u,t,s),n[0]=n[0]+s[0],n[1]=n[1]+s[1],s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2):P(0,l,c,u,t,s);break}case 7:{P(0,l,c,u,t,s);break}case 8:{t>=r?P(c/2,0,c,l,t,s):(s[0]=0,s[1]=0);break}case 9:{Math.abs(a)>0?(P(0,u,c,l,t,o),P(0,u,c/2,0,t,n),P(c/2,0,c,l,t,s),n[0]=n[0]+s[0],n[1]=n[1]+s[1],s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2):P(0,u,c,l,t,s);break}case 10:{s[0]=0,s[1]=0;break}case 11:{P(0,u,c,l,t,s);break}case 12:{P(0,l,c/2,0,t,o),P(c/2,0,c,l,t,n),at(c),s[0]=o[0]+n[0],s[1]=o[1]+n[1];break}case 13:{P(0,u,c,l,t,s);break}case 14:{P(0,l,c,u,t,s);break}case 15:{s[0]=0,s[1]=0;break}}return s}function ns(e,t,r,a,s,o){let n=e===r&&t===a;if(!n){const l=(e+r)/2,u=(t+a)/2,c=a-t,f=e-r;n=c*(s-l)+f*(o-u)>0}return n}function st(e,t,r,a,s,o){let n=0;for(let l=0;l<re;++l)for(let u=0;u<re;++u){const c=u/(re-1),f=l/(re-1);ns(e,t,r,a,s+c,o+f)&&++n}return n/(re*re)}function E(e,t,r,a,s,o,n,l){const u=Gt[e],c=u[0],f=u[1];return c>0&&(t+=n[0],r+=n[1]),f>0&&(a+=n[0],s+=n[1]),l[0]=1-st(t,r,a,s,1+o,0+o),l[1]=st(t,r,a,s,1+o,1+o),l}function os(e,t,r,a,s){const o=ue[0],n=ue[1],l=t+r+1;switch(e){case 0:{E(e,1,1,1+l,1+l,t,a,o),E(e,1,0,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 1:{E(e,1,0,0+l,0+l,t,a,o),E(e,1,0,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 2:{E(e,0,0,1+l,0+l,t,a,o),E(e,1,0,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 3:{E(e,1,0,1+l,0+l,t,a,s);break}case 4:{E(e,1,1,0+l,0+l,t,a,o),E(e,1,1,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 5:{E(e,1,1,0+l,0+l,t,a,o),E(e,1,0,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 6:{E(e,1,1,1+l,0+l,t,a,s);break}case 7:{E(e,1,1,1+l,0+l,t,a,o),E(e,1,0,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 8:{E(e,0,0,1+l,1+l,t,a,o),E(e,1,0,1+l,1+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 9:{E(e,1,0,1+l,1+l,t,a,s),E(e,1,0,1+l,1+l,t,a,s);break}case 10:{E(e,0,0,1+l,1+l,t,a,o),E(e,1,0,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 11:{E(e,1,0,1+l,1+l,t,a,o),E(e,1,0,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 12:{E(e,1,1,1+l,1+l,t,a,s);break}case 13:{E(e,1,1,1+l,1+l,t,a,o),E(e,1,0,1+l,1+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 14:{E(e,1,1,1+l,1+l,t,a,o),E(e,1,1,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}case 15:{E(e,1,1,1+l,1+l,t,a,o),E(e,1,0,1+l,0+l,t,a,n),s[0]=(o[0]+n[0])/2,s[1]=(o[1]+n[1])/2;break}}return s}function nt(e,t,r){const a=new Float32Array(2);for(let s=0,o=e.length;s<o;++s){const n=e[s],l=n.data,u=n.width;for(let c=0;c<u;++c)for(let f=0;f<u;++f){r?ss(s,f,c,t,a):os(s,f,c,t,a);const h=(c*u+f)*2;l[h]=a[0]*255,l[h+1]=a[1]*255}}}function ot(e,t,r,a,s,o,n){const l=n.data,u=n.width;for(let c=0,f=r.length;c<f;++c){const h=a[c],d=r[c],v=d.data,g=d.width;for(let m=0;m<s;++m)for(let T=0;T<s;++T){const w=h[0]*s+e+T,x=((h[1]*s+t+m)*u+w)*4,R=o?(m*m*g+T*T)*2:(m*g+T)*2;l[x]=v[R],l[x+1]=v[R+1],l[x+2]=0,l[x+3]=255}}}var ls=class{static generate(){const e=10*ie,t=Re.length*5*ie,r=new Uint8ClampedArray(e*t*4),a=new Y(e,t,r),s=Math.pow(ie-1,2)+1,o=Ie,n=[],l=[];for(let u=3,c=r.length;u<c;u+=4)r[u]=255;for(let u=0;u<16;++u)n.push(new Y(s,s,new Uint8ClampedArray(s*s*2),2)),l.push(new Y(o,o,new Uint8ClampedArray(o*o*2),2));for(let u=0,c=Re.length;u<c;++u)nt(n,Re[u],!0),ot(0,5*ie*u,n,rs,ie,!0,a);for(let u=0,c=rt.length;u<c;++u)nt(l,rt[u],!1),ot(5*ie,4*Ie*u,l,Gt,Ie,!1,a);return a}},us=`"use strict";(()=>{function q(t,a,s){let e=document.createElement("canvas"),n=e.getContext("2d");if(e.width=t,e.height=a,s instanceof Image)n.drawImage(s,0,0);else{let r=n.createImageData(t,a);r.data.set(s),n.putImageData(r,0,0)}return e}var F=class t{constructor(a=0,s=0,e=null){this.width=a,this.height=s,this.data=e}toCanvas(){return typeof document=="undefined"?null:q(this.width,this.height,this.data)}static from(a){let{width:s,height:e}=a,n;if(a instanceof Image){let r=q(s,e,a);r!==null&&(n=r.getContext("2d").getImageData(0,0,s,e).data)}else n=a.data;return new t(s,e,n)}};var M=[new Float32Array(2),new Float32Array(2)],D=16,W=20,I=30,j=32,v=new Float32Array([0,-.25,.25,-.125,.125,-.375,.375]),N=[new Float32Array([0,0]),new Float32Array([.25,-.25]),new Float32Array([-.25,.25]),new Float32Array([.125,-.125]),new Float32Array([-.125,.125])],z=[new Uint8Array([0,0]),new Uint8Array([3,0]),new Uint8Array([0,3]),new Uint8Array([3,3]),new Uint8Array([1,0]),new Uint8Array([4,0]),new Uint8Array([1,3]),new Uint8Array([4,3]),new Uint8Array([0,1]),new Uint8Array([3,1]),new Uint8Array([0,4]),new Uint8Array([3,4]),new Uint8Array([1,1]),new Uint8Array([4,1]),new Uint8Array([1,4]),new Uint8Array([4,4])],p=[new Uint8Array([0,0]),new Uint8Array([1,0]),new Uint8Array([0,2]),new Uint8Array([1,2]),new Uint8Array([2,0]),new Uint8Array([3,0]),new Uint8Array([2,2]),new Uint8Array([3,2]),new Uint8Array([0,1]),new Uint8Array([1,1]),new Uint8Array([0,3]),new Uint8Array([1,3]),new Uint8Array([2,1]),new Uint8Array([3,1]),new Uint8Array([2,3]),new Uint8Array([3,3])];function C(t,a,s){return t+(a-t)*s}function B(t){return Math.min(Math.max(t,0),1)}function _(t){let a=M[0],s=M[1],e=Math.sqrt(a[0]*2)*.5,n=Math.sqrt(a[1]*2)*.5,r=Math.sqrt(s[0]*2)*.5,o=Math.sqrt(s[1]*2)*.5,c=B(t/j);a[0]=C(e,a[0],c),a[1]=C(n,a[1],c),s[0]=C(r,s[0],c),s[1]=C(o,s[1],c)}function d(t,a,s,e,n,r){let o=s-t,c=e-a,h=n,i=n+1,w=a+c*(h-t)/o,b=a+c*(i-t)/o;if(h>=t&&h<s||i>t&&i<=s)if(Math.sign(w)===Math.sign(b)||Math.abs(w)<1e-4||Math.abs(b)<1e-4){let g=(w+b)/2;g<0?(r[0]=Math.abs(g),r[1]=0):(r[0]=0,r[1]=Math.abs(g))}else{let g=-a*o/c+t,k=Math.trunc(g),m=g>t?w*(g-k)/2:0,U=g<s?b*(1-(g-k))/2:0;(Math.abs(m)>Math.abs(U)?m:-U)<0?(r[0]=Math.abs(m),r[1]=Math.abs(U)):(r[0]=Math.abs(U),r[1]=Math.abs(m))}else r[0]=0,r[1]=0;return r}function J(t,a,s,e,n){let r=M[0],o=M[1],c=.5+e,h=.5+e-1,i=a+s+1;switch(t){case 0:{n[0]=0,n[1]=0;break}case 1:{a<=s?d(0,h,i/2,0,a,n):(n[0]=0,n[1]=0);break}case 2:{a>=s?d(i/2,0,i,h,a,n):(n[0]=0,n[1]=0);break}case 3:{d(0,h,i/2,0,a,r),d(i/2,0,i,h,a,o),_(i,M),n[0]=r[0]+o[0],n[1]=r[1]+o[1];break}case 4:{a<=s?d(0,c,i/2,0,a,n):(n[0]=0,n[1]=0);break}case 5:{n[0]=0,n[1]=0;break}case 6:{Math.abs(e)>0?(d(0,c,i,h,a,r),d(0,c,i/2,0,a,o),d(i/2,0,i,h,a,n),o[0]=o[0]+n[0],o[1]=o[1]+n[1],n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2):d(0,c,i,h,a,n);break}case 7:{d(0,c,i,h,a,n);break}case 8:{a>=s?d(i/2,0,i,c,a,n):(n[0]=0,n[1]=0);break}case 9:{Math.abs(e)>0?(d(0,h,i,c,a,r),d(0,h,i/2,0,a,o),d(i/2,0,i,c,a,n),o[0]=o[0]+n[0],o[1]=o[1]+n[1],n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2):d(0,h,i,c,a,n);break}case 10:{n[0]=0,n[1]=0;break}case 11:{d(0,h,i,c,a,n);break}case 12:{d(0,c,i/2,0,a,r),d(i/2,0,i,c,a,o),_(i,M),n[0]=r[0]+o[0],n[1]=r[1]+o[1];break}case 13:{d(0,h,i,c,a,n);break}case 14:{d(0,c,i,h,a,n);break}case 15:{n[0]=0,n[1]=0;break}}return n}function K(t,a,s,e,n,r){let o=t===s&&a===e;if(!o){let c=(t+s)/2,h=(a+e)/2,i=e-a,w=t-s;o=i*(n-c)+w*(r-h)>0}return o}function G(t,a,s,e,n,r){let o=0;for(let c=0;c<I;++c)for(let h=0;h<I;++h){let i=h/(I-1),w=c/(I-1);K(t,a,s,e,n+i,r+w)&&++o}return o/(I*I)}function A(t,a,s,e,n,r,o,c){let h=p[t],i=h[0],w=h[1];return i>0&&(a+=o[0],s+=o[1]),w>0&&(e+=o[0],n+=o[1]),c[0]=1-G(a,s,e,n,1+r,0+r),c[1]=G(a,s,e,n,1+r,1+r),c}function Q(t,a,s,e,n){let r=M[0],o=M[1],c=a+s+1;switch(t){case 0:{A(t,1,1,1+c,1+c,a,e,r),A(t,1,0,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 1:{A(t,1,0,0+c,0+c,a,e,r),A(t,1,0,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 2:{A(t,0,0,1+c,0+c,a,e,r),A(t,1,0,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 3:{A(t,1,0,1+c,0+c,a,e,n);break}case 4:{A(t,1,1,0+c,0+c,a,e,r),A(t,1,1,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 5:{A(t,1,1,0+c,0+c,a,e,r),A(t,1,0,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 6:{A(t,1,1,1+c,0+c,a,e,n);break}case 7:{A(t,1,1,1+c,0+c,a,e,r),A(t,1,0,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 8:{A(t,0,0,1+c,1+c,a,e,r),A(t,1,0,1+c,1+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 9:{A(t,1,0,1+c,1+c,a,e,n),A(t,1,0,1+c,1+c,a,e,n);break}case 10:{A(t,0,0,1+c,1+c,a,e,r),A(t,1,0,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 11:{A(t,1,0,1+c,1+c,a,e,r),A(t,1,0,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 12:{A(t,1,1,1+c,1+c,a,e,n);break}case 13:{A(t,1,1,1+c,1+c,a,e,r),A(t,1,0,1+c,1+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 14:{A(t,1,1,1+c,1+c,a,e,r),A(t,1,1,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}case 15:{A(t,1,1,1+c,1+c,a,e,r),A(t,1,0,1+c,0+c,a,e,o),n[0]=(r[0]+o[0])/2,n[1]=(r[1]+o[1])/2;break}}return n}function R(t,a,s){let e=new Float32Array(2);for(let n=0,r=t.length;n<r;++n){let o=t[n],c=o.data,h=o.width;for(let i=0;i<h;++i)for(let w=0;w<h;++w){s?J(n,w,i,a,e):Q(n,w,i,a,e);let b=(i*h+w)*2;c[b]=e[0]*255,c[b+1]=e[1]*255}}}function T(t,a,s,e,n,r,o){let c=o.data,h=o.width;for(let i=0,w=s.length;i<w;++i){let b=e[i],g=s[i],k=g.data,m=g.width;for(let U=0;U<n;++U)for(let x=0;x<n;++x){let Z=b[0]*n+t+x,O=((b[1]*n+a+U)*h+Z)*4,L=r?(U*U*m+x*x)*2:(U*m+x)*2;c[O]=k[L],c[O+1]=k[L+1],c[O+2]=0,c[O+3]=255}}}var S=class{static generate(){let a=10*D,s=v.length*5*D,e=new Uint8ClampedArray(a*s*4),n=new F(a,s,e),r=Math.pow(D-1,2)+1,o=W,c=[],h=[];for(let i=3,w=e.length;i<w;i+=4)e[i]=255;for(let i=0;i<16;++i)c.push(new F(r,r,new Uint8ClampedArray(r*r*2),2)),h.push(new F(o,o,new Uint8ClampedArray(o*o*2),2));for(let i=0,w=v.length;i<w;++i)R(c,v[i],!0),T(0,5*D*i,c,z,D,!0,n);for(let i=0,w=N.length;i<w;++i)R(h,N[i],!1),T(5*D,4*W*i,h,p,W,!1,n);return n}};var P=new Map([[y(0,0,0,0),new Float32Array([0,0,0,0])],[y(0,0,0,1),new Float32Array([0,0,0,1])],[y(0,0,1,0),new Float32Array([0,0,1,0])],[y(0,0,1,1),new Float32Array([0,0,1,1])],[y(0,1,0,0),new Float32Array([0,1,0,0])],[y(0,1,0,1),new Float32Array([0,1,0,1])],[y(0,1,1,0),new Float32Array([0,1,1,0])],[y(0,1,1,1),new Float32Array([0,1,1,1])],[y(1,0,0,0),new Float32Array([1,0,0,0])],[y(1,0,0,1),new Float32Array([1,0,0,1])],[y(1,0,1,0),new Float32Array([1,0,1,0])],[y(1,0,1,1),new Float32Array([1,0,1,1])],[y(1,1,0,0),new Float32Array([1,1,0,0])],[y(1,1,0,1),new Float32Array([1,1,0,1])],[y(1,1,1,0),new Float32Array([1,1,1,0])],[y(1,1,1,1),new Float32Array([1,1,1,1])]]);function H(t,a,s){return t+(a-t)*s}function y(t,a,s,e){let n=H(t,a,.75),r=H(s,e,1-.25);return H(n,r,1-.125)}function V(t,a){let s=0;return a[3]===1&&(s+=1),s===1&&a[2]===1&&t[1]!==1&&t[3]!==1&&(s+=1),s}function $(t,a){let s=0;return a[3]===1&&t[1]!==1&&t[3]!==1&&(s+=1),s===1&&a[2]===1&&t[0]!==1&&t[2]!==1&&(s+=1),s}var E=class{static generate(){let o=new Uint8ClampedArray(2178),c=new Uint8ClampedArray(64*16*4);for(let h=0;h<33;++h)for(let i=0;i<66;++i){let w=.03125*i,b=.03125*h;if(P.has(w)&&P.has(b)){let g=P.get(w),k=P.get(b),m=h*66+i;o[m]=127*V(g,k),o[m+33]=127*$(g,k)}}for(let h=0,i=17;i<33;++i)for(let w=0;w<64;++w,h+=4)c[h]=o[i*66+w],c[h+3]=255;return new F(64,16,c)}};self.addEventListener("message",t=>{let a=S.generate(),s=E.generate();postMessage({areaImageData:a,searchImageData:s},[a.data.buffer,s.data.buffer]),close()});})();
|
|
876
|
-
`;function cs(e=!0){const t=URL.createObjectURL(new Blob([us],{type:"text/javascript"})),r=new Worker(t);return URL.revokeObjectURL(t),new Promise((a,s)=>{r.addEventListener("error",o=>s(o.error)),r.addEventListener("message",o=>{const n=Y.from(o.data.searchImageData),l=Y.from(o.data.areaImageData),u=[n.toCanvas().toDataURL("image/png",1),l.toCanvas().toDataURL("image/png",1)];e&&(localStorage.setItem("smaa-search",u[0]),localStorage.setItem("smaa-area",u[1])),a(u)}),r.postMessage(null)})}var fs=class{constructor(){this.disableCache=!1}setCacheEnabled(e){this.disableCache=!e}generate(){const e=!this.disableCache&&window.localStorage!==void 0,t=e?[localStorage.getItem("smaa-search"),localStorage.getItem("smaa-area")]:[null,null];return(t[0]!==null&&t[1]!==null?Promise.resolve(t):cs(e)).then(a=>new Promise((s,o)=>{const n=new Image,l=new Image,u=new i.LoadingManager;u.onLoad=()=>s([n,l]),u.onError=o,n.addEventListener("error",c=>u.itemError("smaa-search")),l.addEventListener("error",c=>u.itemError("smaa-area")),n.addEventListener("load",()=>u.itemEnd("smaa-search")),l.addEventListener("load",()=>u.itemEnd("smaa-area")),u.itemStart("smaa-search"),u.itemStart("smaa-area"),n.src=a[0],l.src=a[1]}))}},Te=new Map([[b(0,0,0,0),new Float32Array([0,0,0,0])],[b(0,0,0,1),new Float32Array([0,0,0,1])],[b(0,0,1,0),new Float32Array([0,0,1,0])],[b(0,0,1,1),new Float32Array([0,0,1,1])],[b(0,1,0,0),new Float32Array([0,1,0,0])],[b(0,1,0,1),new Float32Array([0,1,0,1])],[b(0,1,1,0),new Float32Array([0,1,1,0])],[b(0,1,1,1),new Float32Array([0,1,1,1])],[b(1,0,0,0),new Float32Array([1,0,0,0])],[b(1,0,0,1),new Float32Array([1,0,0,1])],[b(1,0,1,0),new Float32Array([1,0,1,0])],[b(1,0,1,1),new Float32Array([1,0,1,1])],[b(1,1,0,0),new Float32Array([1,1,0,0])],[b(1,1,0,1),new Float32Array([1,1,0,1])],[b(1,1,1,0),new Float32Array([1,1,1,0])],[b(1,1,1,1),new Float32Array([1,1,1,1])]]);function be(e,t,r){return e+(t-e)*r}function b(e,t,r,a){const s=be(e,t,.75),o=be(r,a,1-.25);return be(s,o,1-.125)}function hs(e,t){let r=0;return t[3]===1&&(r+=1),r===1&&t[2]===1&&e[1]!==1&&e[3]!==1&&(r+=1),r}function ds(e,t){let r=0;return t[3]===1&&e[1]!==1&&e[3]!==1&&(r+=1),r===1&&t[2]===1&&e[0]!==1&&e[2]!==1&&(r+=1),r}var vs=class{static generate(){const o=new Uint8ClampedArray(2178),n=new Uint8ClampedArray(64*16*4);for(let l=0;l<33;++l)for(let u=0;u<66;++u){const c=.03125*u,f=.03125*l;if(Te.has(c)&&Te.has(f)){const h=Te.get(c),d=Te.get(f),v=l*66+u;o[v]=127*hs(h,d),o[v+33]=127*ds(h,d)}}for(let l=0,u=17;u<33;++u)for(let c=0;c<64;++c,l+=4)n[l]=o[u*66+c],n[l+3]=255;return new Y(64,16,n)}};const ps=Object.freeze(Object.defineProperty({__proto__:null,ASCIIEffect:Gi,ASCIITexture:vt,AdaptiveLuminanceMaterial:bt,AdaptiveLuminancePass:Ft,BlendFunction:p,BlendMode:dt,BloomEffect:xt,BlurPass:q,BokehEffect:Ji,BokehMaterial:he,BoxBlurMaterial:Lt,BoxBlurPass:Va,BrightnessContrastEffect:_i,ChromaticAberrationEffect:sr,CircleOfConfusionMaterial:Dt,ClearMaskPass:ut,ClearPass:_,ColorAverageEffect:er,ColorChannel:Z,ColorDepthEffect:ir,ColorEdgesMaterial:Ne,ConvolutionMaterial:Ce,CopyMaterial:ve,CopyPass:Se,DepthComparisonMaterial:yt,DepthCopyMaterial:Ot,DepthCopyMode:oe,DepthCopyPass:ze,DepthDownsamplingMaterial:Ut,DepthDownsamplingPass:Pt,DepthEffect:or,DepthMaskMaterial:We,DepthOfFieldEffect:hr,DepthPass:Ke,DepthPickingPass:Za,DepthSavePass:ze,DepthTestStrategy:le,Disposable:Jt,DotScreenEffect:vr,DownsamplingMaterial:mt,EdgeDetectionMaterial:Ne,EdgeDetectionMode:Ye,Effect:C,EffectAttribute:I,EffectComposer:ei,EffectMaterial:Nt,EffectPass:Ja,EffectShaderData:ft,EffectShaderSection:S,FXAAEffect:gr,GammaCorrectionEffect:xr,GaussKernel:ht,GaussianBlurMaterial:Ht,GaussianBlurPass:qa,GlitchEffect:wr,GlitchMode:ae,GodRaysEffect:yr,GodRaysMaterial:wt,GridEffect:Mr,HueSaturationEffect:Pr,ImmutableTimer:ti,Initializable:ii,KawaseBlurMaterial:Ce,KawaseBlurPass:q,KernelSize:G,LUT1DEffect:Fr,LUT3DEffect:_e,LUT3dlLoader:Ra,LUTCubeLoader:ba,LUTEffect:_e,LUTOperation:St,LambdaPass:_a,LensDistortionEffect:Rr,LookupTexture:de,LookupTexture3D:de,LuminanceMaterial:pt,LuminancePass:Qe,MaskFunction:Ve,MaskMaterial:Tt,MaskPass:ct,MipmapBlurPass:At,NoiseEffect:Gr,NoiseTexture:Ee,NormalPass:$a,OutlineEdgesMaterial:Oe,OutlineEffect:Kr,OutlineMaterial:Oe,OverrideMaterialManager:Le,Pass:M,PixelationEffect:Zr,PredicationMode:Et,RawImageData:Y,RealisticBokehEffect:Jr,RenderPass:pe,Resizable:ri,Resizer:A,Resolution:A,SMAAAreaImageData:ls,SMAAEffect:ha,SMAAImageGenerator:fs,SMAAImageLoader:Fa,SMAAPreset:se,SMAASearchImageData:vs,SMAAWeightsMaterial:Bt,SSAOEffect:Aa,SSAOMaterial:Mt,SavePass:Se,ScanlineEffect:_r,Section:S,Selection:ke,SelectiveBloomEffect:ra,SepiaEffect:sa,ShaderPass:O,ShockWaveEffect:ia,TetrahedralUpscaler:ts,TextureEffect:Ta,TiltShiftBlurMaterial:It,TiltShiftBlurPass:Rt,TiltShiftEffect:ya,Timer:lt,ToneMappingEffect:Ua,ToneMappingMode:L,UpsamplingMaterial:gt,VignetteEffect:Ia,VignetteTechnique:ne,WebGLExtension:Nr,version:jt},Symbol.toStringTag,{value:"Module"})),me=new i.BufferGeometry;me.setAttribute("position",new i.BufferAttribute(new Float32Array([-1,-1,3,-1,-1,3]),2));me.setAttribute("uv",new i.BufferAttribute(new Float32Array([0,0,2,0,0,2]),2));me.boundingSphere=new i.Sphere;me.computeBoundingSphere=function(){};const ms=new i.OrthographicCamera;class N{constructor(t){this._mesh=new i.Mesh(me,t),this._mesh.frustumCulled=!1}render(t){t.render(this._mesh,ms)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}dispose(){this._mesh.material.dispose(),this._mesh.geometry.dispose()}}const zt={uniforms:{sceneDiffuse:{value:null},sceneDepth:{value:null},sceneNormal:{value:null},projMat:{value:new i.Matrix4},viewMat:{value:new i.Matrix4},projViewMat:{value:new i.Matrix4},projectionMatrixInv:{value:new i.Matrix4},viewMatrixInv:{value:new i.Matrix4},cameraPos:{value:new i.Vector3},resolution:{value:new i.Vector2},biasAdjustment:{value:new i.Vector2},time:{value:0},samples:{value:[]},bluenoise:{value:null},distanceFalloff:{value:1},radius:{value:5},near:{value:.1},far:{value:1e3},logDepth:{value:!1},ortho:{value:!1},screenSpaceRadius:{value:!1},frame:{value:0}},depthWrite:!1,depthTest:!1,vertexShader:`
|
|
877
|
-
varying vec2 vUv;
|
|
878
|
-
void main() {
|
|
879
|
-
vUv = uv;
|
|
880
|
-
gl_Position = vec4(position, 1);
|
|
881
|
-
}`,fragmentShader:`
|
|
882
|
-
#define SAMPLES 16
|
|
883
|
-
#define FSAMPLES 16.0
|
|
884
|
-
uniform sampler2D sceneDiffuse;
|
|
885
|
-
uniform highp sampler2D sceneNormal;
|
|
886
|
-
uniform highp sampler2D sceneDepth;
|
|
887
|
-
uniform mat4 projectionMatrixInv;
|
|
888
|
-
uniform mat4 viewMatrixInv;
|
|
889
|
-
uniform mat4 projMat;
|
|
890
|
-
uniform mat4 viewMat;
|
|
891
|
-
uniform mat4 projViewMat;
|
|
892
|
-
uniform vec3 cameraPos;
|
|
893
|
-
uniform vec2 resolution;
|
|
894
|
-
uniform vec2 biasAdjustment;
|
|
895
|
-
uniform float time;
|
|
896
|
-
uniform vec3[SAMPLES] samples;
|
|
897
|
-
uniform float radius;
|
|
898
|
-
uniform float distanceFalloff;
|
|
899
|
-
uniform float near;
|
|
900
|
-
uniform float far;
|
|
901
|
-
uniform float frame;
|
|
902
|
-
uniform bool logDepth;
|
|
903
|
-
uniform bool ortho;
|
|
904
|
-
uniform bool screenSpaceRadius;
|
|
905
|
-
uniform sampler2D bluenoise;
|
|
906
|
-
varying vec2 vUv;
|
|
907
|
-
highp float linearize_depth(highp float d, highp float zNear,highp float zFar)
|
|
908
|
-
{
|
|
909
|
-
return (zFar * zNear) / (zFar - d * (zFar - zNear));
|
|
910
|
-
}
|
|
911
|
-
highp float linearize_depth_ortho(highp float d, highp float nearZ, highp float farZ) {
|
|
912
|
-
return nearZ + (farZ - nearZ) * d;
|
|
913
|
-
}
|
|
914
|
-
highp float linearize_depth_log(highp float d, highp float nearZ,highp float farZ) {
|
|
915
|
-
float depth = pow(2.0, d * log2(farZ + 1.0)) - 1.0;
|
|
916
|
-
float a = farZ / (farZ - nearZ);
|
|
917
|
-
float b = farZ * nearZ / (nearZ - farZ);
|
|
918
|
-
float linDepth = a + b / depth;
|
|
919
|
-
/*return ortho ? linearize_depth_ortho(
|
|
920
|
-
linDepth,
|
|
921
|
-
nearZ,
|
|
922
|
-
farZ
|
|
923
|
-
) :linearize_depth(linDepth, nearZ, farZ);*/
|
|
924
|
-
#ifdef ORTHO
|
|
925
|
-
|
|
926
|
-
return linearize_depth_ortho(d, nearZ, farZ);
|
|
927
|
-
|
|
928
|
-
#else
|
|
929
|
-
return linearize_depth(linDepth, nearZ, farZ);
|
|
930
|
-
#endif
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
vec3 getWorldPosLog(vec3 posS) {
|
|
934
|
-
vec2 uv = posS.xy;
|
|
935
|
-
float z = posS.z;
|
|
936
|
-
float nearZ =near;
|
|
937
|
-
float farZ = far;
|
|
938
|
-
float depth = pow(2.0, z * log2(farZ + 1.0)) - 1.0;
|
|
939
|
-
float a = farZ / (farZ - nearZ);
|
|
940
|
-
float b = farZ * nearZ / (nearZ - farZ);
|
|
941
|
-
float linDepth = a + b / depth;
|
|
942
|
-
vec4 clipVec = vec4(uv, linDepth, 1.0) * 2.0 - 1.0;
|
|
943
|
-
vec4 wpos = projectionMatrixInv * clipVec;
|
|
944
|
-
return wpos.xyz / wpos.w;
|
|
945
|
-
}
|
|
946
|
-
vec3 getWorldPos(float depth, vec2 coord) {
|
|
947
|
-
#ifdef LOGDEPTH
|
|
948
|
-
#ifndef ORTHO
|
|
949
|
-
return getWorldPosLog(vec3(coord, depth));
|
|
950
|
-
#endif
|
|
951
|
-
#endif
|
|
952
|
-
float z = depth * 2.0 - 1.0;
|
|
953
|
-
vec4 clipSpacePosition = vec4(coord * 2.0 - 1.0, z, 1.0);
|
|
954
|
-
vec4 viewSpacePosition = projectionMatrixInv * clipSpacePosition;
|
|
955
|
-
// Perspective division
|
|
956
|
-
vec4 worldSpacePosition = viewSpacePosition;
|
|
957
|
-
worldSpacePosition.xyz /= worldSpacePosition.w;
|
|
958
|
-
return worldSpacePosition.xyz;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
vec3 computeNormal(vec3 worldPos, vec2 vUv) {
|
|
962
|
-
ivec2 p = ivec2(vUv * resolution);
|
|
963
|
-
float c0 = texelFetch(sceneDepth, p, 0).x;
|
|
964
|
-
float l2 = texelFetch(sceneDepth, p - ivec2(2, 0), 0).x;
|
|
965
|
-
float l1 = texelFetch(sceneDepth, p - ivec2(1, 0), 0).x;
|
|
966
|
-
float r1 = texelFetch(sceneDepth, p + ivec2(1, 0), 0).x;
|
|
967
|
-
float r2 = texelFetch(sceneDepth, p + ivec2(2, 0), 0).x;
|
|
968
|
-
float b2 = texelFetch(sceneDepth, p - ivec2(0, 2), 0).x;
|
|
969
|
-
float b1 = texelFetch(sceneDepth, p - ivec2(0, 1), 0).x;
|
|
970
|
-
float t1 = texelFetch(sceneDepth, p + ivec2(0, 1), 0).x;
|
|
971
|
-
float t2 = texelFetch(sceneDepth, p + ivec2(0, 2), 0).x;
|
|
972
|
-
|
|
973
|
-
float dl = abs((2.0 * l1 - l2) - c0);
|
|
974
|
-
float dr = abs((2.0 * r1 - r2) - c0);
|
|
975
|
-
float db = abs((2.0 * b1 - b2) - c0);
|
|
976
|
-
float dt = abs((2.0 * t1 - t2) - c0);
|
|
977
|
-
|
|
978
|
-
vec3 ce = getWorldPos(c0, vUv).xyz;
|
|
979
|
-
|
|
980
|
-
vec3 dpdx = (dl < dr) ? ce - getWorldPos(l1, (vUv - vec2(1.0 / resolution.x, 0.0))).xyz
|
|
981
|
-
: -ce + getWorldPos(r1, (vUv + vec2(1.0 / resolution.x, 0.0))).xyz;
|
|
982
|
-
vec3 dpdy = (db < dt) ? ce - getWorldPos(b1, (vUv - vec2(0.0, 1.0 / resolution.y))).xyz
|
|
983
|
-
: -ce + getWorldPos(t1, (vUv + vec2(0.0, 1.0 / resolution.y))).xyz;
|
|
984
|
-
|
|
985
|
-
return normalize(cross(dpdx, dpdy));
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
mat3 makeRotationZ(float theta) {
|
|
989
|
-
float c = cos(theta);
|
|
990
|
-
float s = sin(theta);
|
|
991
|
-
return mat3(c, - s, 0,
|
|
992
|
-
s, c, 0,
|
|
993
|
-
0, 0, 1);
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
void main() {
|
|
997
|
-
vec4 diffuse = texture2D(sceneDiffuse, vUv);
|
|
998
|
-
float depth = texture2D(sceneDepth, vUv).x;
|
|
999
|
-
if (depth == 1.0) {
|
|
1000
|
-
gl_FragColor = vec4(vec3(1.0), 1.0);
|
|
1001
|
-
return;
|
|
1002
|
-
}
|
|
1003
|
-
vec3 worldPos = getWorldPos(depth, vUv);
|
|
1004
|
-
#ifdef HALFRES
|
|
1005
|
-
vec3 normal = texture2D(sceneNormal, vUv).rgb;
|
|
1006
|
-
#else
|
|
1007
|
-
vec3 normal = computeNormal(worldPos, vUv);
|
|
1008
|
-
#endif
|
|
1009
|
-
vec4 noise = texture2D(bluenoise, gl_FragCoord.xy / 128.0);
|
|
1010
|
-
vec2 harmoniousNumbers = vec2(
|
|
1011
|
-
1.618033988749895,
|
|
1012
|
-
1.324717957244746
|
|
1013
|
-
);
|
|
1014
|
-
noise.rg += harmoniousNumbers * frame;
|
|
1015
|
-
noise.rg = fract(noise.rg);
|
|
1016
|
-
vec3 helperVec = vec3(0.0, 1.0, 0.0);
|
|
1017
|
-
if (dot(helperVec, normal) > 0.99) {
|
|
1018
|
-
helperVec = vec3(1.0, 0.0, 0.0);
|
|
1019
|
-
}
|
|
1020
|
-
vec3 tangent = normalize(cross(helperVec, normal));
|
|
1021
|
-
vec3 bitangent = cross(normal, tangent);
|
|
1022
|
-
mediump mat3 tbn = mat3(tangent, bitangent, normal) * makeRotationZ( noise.r * 3.1415962 * 2.0) ;
|
|
1023
|
-
|
|
1024
|
-
mediump float occluded = 0.0;
|
|
1025
|
-
mediump float totalWeight = 0.0;
|
|
1026
|
-
float radiusToUse = screenSpaceRadius ? distance(
|
|
1027
|
-
worldPos,
|
|
1028
|
-
getWorldPos(depth, vUv +
|
|
1029
|
-
vec2(radius, 0.0) / resolution)
|
|
1030
|
-
) : radius;
|
|
1031
|
-
float distanceFalloffToUse =screenSpaceRadius ?
|
|
1032
|
-
radiusToUse * distanceFalloff
|
|
1033
|
-
: radiusToUse * distanceFalloff * 0.2;
|
|
1034
|
-
float bias = (min(
|
|
1035
|
-
0.1,
|
|
1036
|
-
distanceFalloffToUse * 0.1
|
|
1037
|
-
) / near) * fwidth(distance(worldPos, cameraPos)) / radiusToUse;
|
|
1038
|
-
bias = biasAdjustment.x + biasAdjustment.y * bias;
|
|
1039
|
-
mediump float offsetMove = noise.g;
|
|
1040
|
-
mediump float offsetMoveInv = 1.0 / FSAMPLES;
|
|
1041
|
-
float farTimesNear = far * near;
|
|
1042
|
-
float farMinusNear = far - near;
|
|
1043
|
-
|
|
1044
|
-
for(int i = 0; i < SAMPLES; i++) {
|
|
1045
|
-
mediump vec3 sampleDirection = tbn * samples[i];
|
|
1046
|
-
|
|
1047
|
-
float moveAmt = fract(offsetMove);
|
|
1048
|
-
offsetMove += offsetMoveInv;
|
|
1049
|
-
vec3 samplePos = worldPos + radiusToUse * moveAmt * sampleDirection;
|
|
1050
|
-
vec4 offset = projMat * vec4(samplePos, 1.0);
|
|
1051
|
-
offset.xyz /= offset.w;
|
|
1052
|
-
offset.xyz = offset.xyz * 0.5 + 0.5;
|
|
1053
|
-
|
|
1054
|
-
if (all(greaterThan(offset.xyz * (1.0 - offset.xyz), vec3(0.0)))) {
|
|
1055
|
-
float sampleDepth = textureLod(sceneDepth, offset.xy, 0.0).x;
|
|
1056
|
-
|
|
1057
|
-
/*#ifdef LOGDEPTH
|
|
1058
|
-
float distSample = linearize_depth_log(sampleDepth, near, far);
|
|
1059
|
-
#else
|
|
1060
|
-
#ifdef ORTHO
|
|
1061
|
-
float distSample = near + farMinusNear * sampleDepth;
|
|
1062
|
-
#else
|
|
1063
|
-
float distSample = (farTimesNear) / (far - sampleDepth * farMinusNear);
|
|
1064
|
-
#endif
|
|
1065
|
-
#endif*/
|
|
1066
|
-
#ifdef ORTHO
|
|
1067
|
-
float distSample = near + sampleDepth * farMinusNear;
|
|
1068
|
-
#else
|
|
1069
|
-
#ifdef LOGDEPTH
|
|
1070
|
-
float distSample = linearize_depth_log(sampleDepth, near, far);
|
|
1071
|
-
#else
|
|
1072
|
-
float distSample = (farTimesNear) / (far - sampleDepth * farMinusNear);
|
|
1073
|
-
#endif
|
|
1074
|
-
#endif
|
|
1075
|
-
|
|
1076
|
-
#ifdef ORTHO
|
|
1077
|
-
float distWorld = near + offset.z * farMinusNear;
|
|
1078
|
-
#else
|
|
1079
|
-
float distWorld = (farTimesNear) / (far - offset.z * farMinusNear);
|
|
1080
|
-
#endif
|
|
1081
|
-
|
|
1082
|
-
mediump float rangeCheck = smoothstep(0.0, 1.0, distanceFalloffToUse / (abs(distSample - distWorld)));
|
|
1083
|
-
vec2 diff = gl_FragCoord.xy - floor(offset.xy * resolution);
|
|
1084
|
-
occluded += rangeCheck * float(distSample != distWorld) * float(sampleDepth != depth) * step(distSample + bias, distWorld) * step(
|
|
1085
|
-
1.0,
|
|
1086
|
-
dot(diff, diff)
|
|
1087
|
-
);
|
|
1088
|
-
|
|
1089
|
-
totalWeight ++;
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
float occ = clamp(1.0 - occluded / (totalWeight == 0.0 ? 1.0 : totalWeight), 0.0, 1.0);
|
|
1093
|
-
gl_FragColor = vec4(occ, 0.5 + 0.5 * normal);
|
|
1094
|
-
}`},kt={uniforms:{sceneDiffuse:{value:null},sceneDepth:{value:null},tDiffuse:{value:null},transparencyDWFalse:{value:null},transparencyDWTrue:{value:null},transparencyDWTrueDepth:{value:null},transparencyAware:{value:!1},projMat:{value:new i.Matrix4},viewMat:{value:new i.Matrix4},projectionMatrixInv:{value:new i.Matrix4},viewMatrixInv:{value:new i.Matrix4},cameraPos:{value:new i.Vector3},resolution:{value:new i.Vector2},color:{value:new i.Vector3(0,0,0)},blueNoise:{value:null},downsampledDepth:{value:null},time:{value:0},intensity:{value:10},renderMode:{value:0},gammaCorrection:{value:!1},logDepth:{value:!1},ortho:{value:!1},near:{value:.1},far:{value:1e3},screenSpaceRadius:{value:!1},radius:{value:0},distanceFalloff:{value:1},fog:{value:!1},fogExp:{value:!1},fogDensity:{value:0},fogNear:{value:1/0},fogFar:{value:1/0},colorMultiply:{value:!0},aoTones:{value:0}},depthWrite:!1,depthTest:!1,vertexShader:`
|
|
1095
|
-
varying vec2 vUv;
|
|
1096
|
-
void main() {
|
|
1097
|
-
vUv = uv;
|
|
1098
|
-
gl_Position = vec4(position, 1);
|
|
1099
|
-
}`,fragmentShader:`
|
|
1100
|
-
uniform sampler2D sceneDiffuse;
|
|
1101
|
-
uniform highp sampler2D sceneDepth;
|
|
1102
|
-
uniform highp sampler2D downsampledDepth;
|
|
1103
|
-
uniform highp sampler2D transparencyDWFalse;
|
|
1104
|
-
uniform highp sampler2D transparencyDWTrue;
|
|
1105
|
-
uniform highp sampler2D transparencyDWTrueDepth;
|
|
1106
|
-
uniform sampler2D tDiffuse;
|
|
1107
|
-
uniform sampler2D blueNoise;
|
|
1108
|
-
uniform vec2 resolution;
|
|
1109
|
-
uniform vec3 color;
|
|
1110
|
-
uniform mat4 projectionMatrixInv;
|
|
1111
|
-
uniform mat4 viewMatrixInv;
|
|
1112
|
-
uniform float intensity;
|
|
1113
|
-
uniform float renderMode;
|
|
1114
|
-
uniform float near;
|
|
1115
|
-
uniform float far;
|
|
1116
|
-
uniform float aoTones;
|
|
1117
|
-
uniform bool gammaCorrection;
|
|
1118
|
-
uniform bool logDepth;
|
|
1119
|
-
uniform bool ortho;
|
|
1120
|
-
uniform bool screenSpaceRadius;
|
|
1121
|
-
uniform bool fog;
|
|
1122
|
-
uniform bool fogExp;
|
|
1123
|
-
uniform bool colorMultiply;
|
|
1124
|
-
uniform bool transparencyAware;
|
|
1125
|
-
uniform float fogDensity;
|
|
1126
|
-
uniform float fogNear;
|
|
1127
|
-
uniform float fogFar;
|
|
1128
|
-
uniform float radius;
|
|
1129
|
-
uniform float distanceFalloff;
|
|
1130
|
-
uniform vec3 cameraPos;
|
|
1131
|
-
varying vec2 vUv;
|
|
1132
|
-
highp float linearize_depth(highp float d, highp float zNear,highp float zFar)
|
|
1133
|
-
{
|
|
1134
|
-
return (zFar * zNear) / (zFar - d * (zFar - zNear));
|
|
1135
|
-
}
|
|
1136
|
-
highp float linearize_depth_ortho(highp float d, highp float nearZ, highp float farZ) {
|
|
1137
|
-
return nearZ + (farZ - nearZ) * d;
|
|
1138
|
-
}
|
|
1139
|
-
highp float linearize_depth_log(highp float d, highp float nearZ,highp float farZ) {
|
|
1140
|
-
float depth = pow(2.0, d * log2(farZ + 1.0)) - 1.0;
|
|
1141
|
-
float a = farZ / (farZ - nearZ);
|
|
1142
|
-
float b = farZ * nearZ / (nearZ - farZ);
|
|
1143
|
-
float linDepth = a + b / depth;
|
|
1144
|
-
return ortho ? linearize_depth_ortho(
|
|
1145
|
-
linDepth,
|
|
1146
|
-
nearZ,
|
|
1147
|
-
farZ
|
|
1148
|
-
) :linearize_depth(linDepth, nearZ, farZ);
|
|
1149
|
-
}
|
|
1150
|
-
vec3 getWorldPosLog(vec3 posS) {
|
|
1151
|
-
vec2 uv = posS.xy;
|
|
1152
|
-
float z = posS.z;
|
|
1153
|
-
float nearZ =near;
|
|
1154
|
-
float farZ = far;
|
|
1155
|
-
float depth = pow(2.0, z * log2(farZ + 1.0)) - 1.0;
|
|
1156
|
-
float a = farZ / (farZ - nearZ);
|
|
1157
|
-
float b = farZ * nearZ / (nearZ - farZ);
|
|
1158
|
-
float linDepth = a + b / depth;
|
|
1159
|
-
vec4 clipVec = vec4(uv, linDepth, 1.0) * 2.0 - 1.0;
|
|
1160
|
-
vec4 wpos = projectionMatrixInv * clipVec;
|
|
1161
|
-
return wpos.xyz / wpos.w;
|
|
1162
|
-
}
|
|
1163
|
-
vec3 getWorldPos(float depth, vec2 coord) {
|
|
1164
|
-
// if (logDepth) {
|
|
1165
|
-
#ifdef LOGDEPTH
|
|
1166
|
-
#ifndef ORTHO
|
|
1167
|
-
return getWorldPosLog(vec3(coord, depth));
|
|
1168
|
-
#endif
|
|
1169
|
-
#endif
|
|
1170
|
-
// }
|
|
1171
|
-
float z = depth * 2.0 - 1.0;
|
|
1172
|
-
vec4 clipSpacePosition = vec4(coord * 2.0 - 1.0, z, 1.0);
|
|
1173
|
-
vec4 viewSpacePosition = projectionMatrixInv * clipSpacePosition;
|
|
1174
|
-
// Perspective division
|
|
1175
|
-
vec4 worldSpacePosition = viewSpacePosition;
|
|
1176
|
-
worldSpacePosition.xyz /= worldSpacePosition.w;
|
|
1177
|
-
return worldSpacePosition.xyz;
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
vec3 computeNormal(vec3 worldPos, vec2 vUv) {
|
|
1181
|
-
ivec2 p = ivec2(vUv * resolution);
|
|
1182
|
-
float c0 = texelFetch(sceneDepth, p, 0).x;
|
|
1183
|
-
float l2 = texelFetch(sceneDepth, p - ivec2(2, 0), 0).x;
|
|
1184
|
-
float l1 = texelFetch(sceneDepth, p - ivec2(1, 0), 0).x;
|
|
1185
|
-
float r1 = texelFetch(sceneDepth, p + ivec2(1, 0), 0).x;
|
|
1186
|
-
float r2 = texelFetch(sceneDepth, p + ivec2(2, 0), 0).x;
|
|
1187
|
-
float b2 = texelFetch(sceneDepth, p - ivec2(0, 2), 0).x;
|
|
1188
|
-
float b1 = texelFetch(sceneDepth, p - ivec2(0, 1), 0).x;
|
|
1189
|
-
float t1 = texelFetch(sceneDepth, p + ivec2(0, 1), 0).x;
|
|
1190
|
-
float t2 = texelFetch(sceneDepth, p + ivec2(0, 2), 0).x;
|
|
1191
|
-
|
|
1192
|
-
float dl = abs((2.0 * l1 - l2) - c0);
|
|
1193
|
-
float dr = abs((2.0 * r1 - r2) - c0);
|
|
1194
|
-
float db = abs((2.0 * b1 - b2) - c0);
|
|
1195
|
-
float dt = abs((2.0 * t1 - t2) - c0);
|
|
1196
|
-
|
|
1197
|
-
vec3 ce = getWorldPos(c0, vUv).xyz;
|
|
1198
|
-
|
|
1199
|
-
vec3 dpdx = (dl < dr) ? ce - getWorldPos(l1, (vUv - vec2(1.0 / resolution.x, 0.0))).xyz
|
|
1200
|
-
: -ce + getWorldPos(r1, (vUv + vec2(1.0 / resolution.x, 0.0))).xyz;
|
|
1201
|
-
vec3 dpdy = (db < dt) ? ce - getWorldPos(b1, (vUv - vec2(0.0, 1.0 / resolution.y))).xyz
|
|
1202
|
-
: -ce + getWorldPos(t1, (vUv + vec2(0.0, 1.0 / resolution.y))).xyz;
|
|
1203
|
-
|
|
1204
|
-
return normalize(cross(dpdx, dpdy));
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
#include <common>
|
|
1208
|
-
#include <dithering_pars_fragment>
|
|
1209
|
-
void main() {
|
|
1210
|
-
//vec4 texel = texture2D(tDiffuse, vUv);//vec3(0.0);
|
|
1211
|
-
vec4 sceneTexel = texture2D(sceneDiffuse, vUv);
|
|
1212
|
-
float depth = texture2D(
|
|
1213
|
-
sceneDepth,
|
|
1214
|
-
vUv
|
|
1215
|
-
).x;
|
|
1216
|
-
#ifdef HALFRES
|
|
1217
|
-
vec4 texel;
|
|
1218
|
-
if (depth == 1.0) {
|
|
1219
|
-
texel = vec4(0.0, 0.0, 0.0, 1.0);
|
|
1220
|
-
} else {
|
|
1221
|
-
vec3 worldPos = getWorldPos(depth, vUv);
|
|
1222
|
-
vec3 normal = computeNormal(getWorldPos(depth, vUv), vUv);
|
|
1223
|
-
// vec4 texel = texture2D(tDiffuse, vUv);
|
|
1224
|
-
// Find closest depth;
|
|
1225
|
-
float totalWeight = 0.0;
|
|
1226
|
-
float radiusToUse = screenSpaceRadius ? distance(
|
|
1227
|
-
worldPos,
|
|
1228
|
-
getWorldPos(depth, vUv +
|
|
1229
|
-
vec2(radius, 0.0) / resolution)
|
|
1230
|
-
) : radius;
|
|
1231
|
-
float distanceFalloffToUse =screenSpaceRadius ?
|
|
1232
|
-
radiusToUse * distanceFalloff
|
|
1233
|
-
: distanceFalloff;
|
|
1234
|
-
for(float x = -1.0; x <= 1.0; x++) {
|
|
1235
|
-
for(float y = -1.0; y <= 1.0; y++) {
|
|
1236
|
-
vec2 offset = vec2(x, y);
|
|
1237
|
-
ivec2 p = ivec2(
|
|
1238
|
-
(vUv * resolution * 0.5) + offset
|
|
1239
|
-
);
|
|
1240
|
-
vec2 pUv = vec2(p) / (resolution * 0.5);
|
|
1241
|
-
float sampleDepth = texelFetch(downsampledDepth,p, 0).x;
|
|
1242
|
-
vec4 sampleInfo = texelFetch(tDiffuse, p, 0);
|
|
1243
|
-
vec3 normalSample = sampleInfo.gba * 2.0 - 1.0;
|
|
1244
|
-
vec3 worldPosSample = getWorldPos(sampleDepth, pUv);
|
|
1245
|
-
float tangentPlaneDist = abs(dot(worldPosSample - worldPos, normal));
|
|
1246
|
-
float rangeCheck = exp(-1.0 * tangentPlaneDist * (1.0 / distanceFalloffToUse)) * max(dot(normal, normalSample), 0.0);
|
|
1247
|
-
float weight = rangeCheck;
|
|
1248
|
-
totalWeight += weight;
|
|
1249
|
-
texel += sampleInfo * weight;
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
if (totalWeight == 0.0) {
|
|
1253
|
-
texel = texture2D(tDiffuse, vUv);
|
|
1254
|
-
} else {
|
|
1255
|
-
texel /= totalWeight;
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
#else
|
|
1259
|
-
vec4 texel = texture2D(tDiffuse, vUv);
|
|
1260
|
-
#endif
|
|
1261
|
-
|
|
1262
|
-
#ifdef LOGDEPTH
|
|
1263
|
-
texel.r = clamp(texel.r, 0.0, 1.0);
|
|
1264
|
-
if (texel.r == 0.0) {
|
|
1265
|
-
texel.r = 1.0;
|
|
1266
|
-
}
|
|
1267
|
-
#endif
|
|
1268
|
-
|
|
1269
|
-
float finalAo = pow(texel.r, intensity);
|
|
1270
|
-
if (aoTones > 0.0) {
|
|
1271
|
-
finalAo = ceil(finalAo * aoTones) / aoTones;
|
|
1272
|
-
}
|
|
1273
|
-
float fogFactor;
|
|
1274
|
-
float fogDepth = distance(
|
|
1275
|
-
cameraPos,
|
|
1276
|
-
getWorldPos(depth, vUv)
|
|
1277
|
-
);
|
|
1278
|
-
if (fog) {
|
|
1279
|
-
if (fogExp) {
|
|
1280
|
-
fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );
|
|
1281
|
-
} else {
|
|
1282
|
-
fogFactor = smoothstep( fogNear, fogFar, fogDepth );
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
if (transparencyAware) {
|
|
1286
|
-
float transparencyDWOff = texture2D(transparencyDWFalse, vUv).a;
|
|
1287
|
-
float transparencyDWOn = texture2D(transparencyDWTrue, vUv).a;
|
|
1288
|
-
float adjustmentFactorOff = transparencyDWOff;
|
|
1289
|
-
float adjustmentFactorOn = (1.0 - transparencyDWOn) * (
|
|
1290
|
-
texture2D(transparencyDWTrueDepth, vUv).r == texture2D(sceneDepth, vUv).r ? 1.0 : 0.0
|
|
1291
|
-
);
|
|
1292
|
-
float adjustmentFactor = max(adjustmentFactorOff, adjustmentFactorOn);
|
|
1293
|
-
finalAo = mix(finalAo, 1.0, adjustmentFactor);
|
|
1294
|
-
}
|
|
1295
|
-
finalAo = mix(finalAo, 1.0, fogFactor);
|
|
1296
|
-
vec3 aoApplied = color * mix(vec3(1.0), sceneTexel.rgb, float(colorMultiply));
|
|
1297
|
-
if (renderMode == 0.0) {
|
|
1298
|
-
gl_FragColor = vec4( mix(sceneTexel.rgb, aoApplied, 1.0 - finalAo), sceneTexel.a);
|
|
1299
|
-
} else if (renderMode == 1.0) {
|
|
1300
|
-
gl_FragColor = vec4( mix(vec3(1.0), aoApplied, 1.0 - finalAo), sceneTexel.a);
|
|
1301
|
-
} else if (renderMode == 2.0) {
|
|
1302
|
-
gl_FragColor = vec4( sceneTexel.rgb, sceneTexel.a);
|
|
1303
|
-
} else if (renderMode == 3.0) {
|
|
1304
|
-
if (vUv.x < 0.5) {
|
|
1305
|
-
gl_FragColor = vec4( sceneTexel.rgb, sceneTexel.a);
|
|
1306
|
-
} else if (abs(vUv.x - 0.5) < 1.0 / resolution.x) {
|
|
1307
|
-
gl_FragColor = vec4(1.0);
|
|
1308
|
-
} else {
|
|
1309
|
-
gl_FragColor = vec4( mix(sceneTexel.rgb, aoApplied, 1.0 - finalAo), sceneTexel.a);
|
|
1310
|
-
}
|
|
1311
|
-
} else if (renderMode == 4.0) {
|
|
1312
|
-
if (vUv.x < 0.5) {
|
|
1313
|
-
gl_FragColor = vec4( sceneTexel.rgb, sceneTexel.a);
|
|
1314
|
-
} else if (abs(vUv.x - 0.5) < 1.0 / resolution.x) {
|
|
1315
|
-
gl_FragColor = vec4(1.0);
|
|
1316
|
-
} else {
|
|
1317
|
-
gl_FragColor = vec4( mix(vec3(1.0), aoApplied, 1.0 - finalAo), sceneTexel.a);
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
#include <dithering_fragment>
|
|
1321
|
-
if (gammaCorrection) {
|
|
1322
|
-
gl_FragColor = sRGBTransferOETF(gl_FragColor);
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
`},Qt={uniforms:{sceneDiffuse:{value:null},sceneDepth:{value:null},tDiffuse:{value:null},projMat:{value:new i.Matrix4},viewMat:{value:new i.Matrix4},projectionMatrixInv:{value:new i.Matrix4},viewMatrixInv:{value:new i.Matrix4},cameraPos:{value:new i.Vector3},resolution:{value:new i.Vector2},time:{value:0},r:{value:5},blueNoise:{value:null},radius:{value:12},worldRadius:{value:5},index:{value:0},poissonDisk:{value:[]},distanceFalloff:{value:1},near:{value:.1},far:{value:1e3},logDepth:{value:!1},screenSpaceRadius:{value:!1}},depthWrite:!1,depthTest:!1,vertexShader:`
|
|
1326
|
-
varying vec2 vUv;
|
|
1327
|
-
void main() {
|
|
1328
|
-
vUv = uv;
|
|
1329
|
-
gl_Position = vec4(position, 1.0);
|
|
1330
|
-
}`,fragmentShader:`
|
|
1331
|
-
uniform sampler2D sceneDiffuse;
|
|
1332
|
-
uniform highp sampler2D sceneDepth;
|
|
1333
|
-
uniform sampler2D tDiffuse;
|
|
1334
|
-
uniform sampler2D blueNoise;
|
|
1335
|
-
uniform mat4 projectionMatrixInv;
|
|
1336
|
-
uniform mat4 viewMatrixInv;
|
|
1337
|
-
uniform vec2 resolution;
|
|
1338
|
-
uniform float r;
|
|
1339
|
-
uniform float radius;
|
|
1340
|
-
uniform float worldRadius;
|
|
1341
|
-
uniform float index;
|
|
1342
|
-
uniform float near;
|
|
1343
|
-
uniform float far;
|
|
1344
|
-
uniform float distanceFalloff;
|
|
1345
|
-
uniform bool logDepth;
|
|
1346
|
-
uniform bool screenSpaceRadius;
|
|
1347
|
-
varying vec2 vUv;
|
|
1348
|
-
|
|
1349
|
-
highp float linearize_depth(highp float d, highp float zNear,highp float zFar)
|
|
1350
|
-
{
|
|
1351
|
-
highp float z_n = 2.0 * d - 1.0;
|
|
1352
|
-
return 2.0 * zNear * zFar / (zFar + zNear - z_n * (zFar - zNear));
|
|
1353
|
-
}
|
|
1354
|
-
highp float linearize_depth_log(highp float d, highp float nearZ,highp float farZ) {
|
|
1355
|
-
float depth = pow(2.0, d * log2(farZ + 1.0)) - 1.0;
|
|
1356
|
-
float a = farZ / (farZ - nearZ);
|
|
1357
|
-
float b = farZ * nearZ / (nearZ - farZ);
|
|
1358
|
-
float linDepth = a + b / depth;
|
|
1359
|
-
return linearize_depth(linDepth, nearZ, farZ);
|
|
1360
|
-
}
|
|
1361
|
-
highp float linearize_depth_ortho(highp float d, highp float nearZ, highp float farZ) {
|
|
1362
|
-
return nearZ + (farZ - nearZ) * d;
|
|
1363
|
-
}
|
|
1364
|
-
vec3 getWorldPosLog(vec3 posS) {
|
|
1365
|
-
vec2 uv = posS.xy;
|
|
1366
|
-
float z = posS.z;
|
|
1367
|
-
float nearZ =near;
|
|
1368
|
-
float farZ = far;
|
|
1369
|
-
float depth = pow(2.0, z * log2(farZ + 1.0)) - 1.0;
|
|
1370
|
-
float a = farZ / (farZ - nearZ);
|
|
1371
|
-
float b = farZ * nearZ / (nearZ - farZ);
|
|
1372
|
-
float linDepth = a + b / depth;
|
|
1373
|
-
vec4 clipVec = vec4(uv, linDepth, 1.0) * 2.0 - 1.0;
|
|
1374
|
-
vec4 wpos = projectionMatrixInv * clipVec;
|
|
1375
|
-
return wpos.xyz / wpos.w;
|
|
1376
|
-
}
|
|
1377
|
-
vec3 getWorldPos(float depth, vec2 coord) {
|
|
1378
|
-
#ifdef LOGDEPTH
|
|
1379
|
-
#ifndef ORTHO
|
|
1380
|
-
return getWorldPosLog(vec3(coord, depth));
|
|
1381
|
-
#endif
|
|
1382
|
-
#endif
|
|
1383
|
-
|
|
1384
|
-
float z = depth * 2.0 - 1.0;
|
|
1385
|
-
vec4 clipSpacePosition = vec4(coord * 2.0 - 1.0, z, 1.0);
|
|
1386
|
-
vec4 viewSpacePosition = projectionMatrixInv * clipSpacePosition;
|
|
1387
|
-
// Perspective division
|
|
1388
|
-
vec4 worldSpacePosition = viewSpacePosition;
|
|
1389
|
-
worldSpacePosition.xyz /= worldSpacePosition.w;
|
|
1390
|
-
return worldSpacePosition.xyz;
|
|
1391
|
-
}
|
|
1392
|
-
#include <common>
|
|
1393
|
-
#define NUM_SAMPLES 16
|
|
1394
|
-
uniform vec2 poissonDisk[NUM_SAMPLES];
|
|
1395
|
-
void main() {
|
|
1396
|
-
const float pi = 3.14159;
|
|
1397
|
-
vec2 texelSize = vec2(1.0 / resolution.x, 1.0 / resolution.y);
|
|
1398
|
-
vec2 uv = vUv;
|
|
1399
|
-
vec4 data = texture2D(tDiffuse, vUv);
|
|
1400
|
-
float occlusion = data.r;
|
|
1401
|
-
float baseOcc = data.r;
|
|
1402
|
-
vec3 normal = data.gba * 2.0 - 1.0;
|
|
1403
|
-
float count = 1.0;
|
|
1404
|
-
float d = texture2D(sceneDepth, vUv).x;
|
|
1405
|
-
if (d == 1.0) {
|
|
1406
|
-
gl_FragColor = data;
|
|
1407
|
-
return;
|
|
1408
|
-
}
|
|
1409
|
-
vec3 worldPos = getWorldPos(d, vUv);
|
|
1410
|
-
float size = radius;
|
|
1411
|
-
float angle;
|
|
1412
|
-
if (index == 0.0) {
|
|
1413
|
-
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).w * PI2;
|
|
1414
|
-
} else if (index == 1.0) {
|
|
1415
|
-
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).z * PI2;
|
|
1416
|
-
} else if (index == 2.0) {
|
|
1417
|
-
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).y * PI2;
|
|
1418
|
-
} else {
|
|
1419
|
-
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).x * PI2;
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
mat2 rotationMatrix = mat2(cos(angle), -sin(angle), sin(angle), cos(angle));
|
|
1423
|
-
float radiusToUse = screenSpaceRadius ? distance(
|
|
1424
|
-
worldPos,
|
|
1425
|
-
getWorldPos(d, vUv +
|
|
1426
|
-
vec2(worldRadius, 0.0) / resolution)
|
|
1427
|
-
) : worldRadius;
|
|
1428
|
-
float distanceFalloffToUse =screenSpaceRadius ?
|
|
1429
|
-
radiusToUse * distanceFalloff
|
|
1430
|
-
: radiusToUse * distanceFalloff * 0.2;
|
|
1431
|
-
|
|
1432
|
-
float invDistance = (1.0 / distanceFalloffToUse);
|
|
1433
|
-
for(int i = 0; i < NUM_SAMPLES; i++) {
|
|
1434
|
-
vec2 offset = (rotationMatrix * poissonDisk[i]) * texelSize * size;
|
|
1435
|
-
vec4 dataSample = texture2D(tDiffuse, uv + offset);
|
|
1436
|
-
float occSample = dataSample.r;
|
|
1437
|
-
vec3 normalSample = dataSample.gba * 2.0 - 1.0;
|
|
1438
|
-
float dSample = texture2D(sceneDepth, uv + offset).x;
|
|
1439
|
-
vec3 worldPosSample = getWorldPos(dSample, uv + offset);
|
|
1440
|
-
float tangentPlaneDist = abs(dot(worldPosSample - worldPos, normal));
|
|
1441
|
-
float rangeCheck = float(dSample != 1.0) * exp(-1.0 * tangentPlaneDist * invDistance ) * max(dot(normal, normalSample), 0.0);
|
|
1442
|
-
occlusion += occSample * rangeCheck;
|
|
1443
|
-
count += rangeCheck;
|
|
1444
|
-
}
|
|
1445
|
-
if (count > 0.0) {
|
|
1446
|
-
occlusion /= count;
|
|
1447
|
-
}
|
|
1448
|
-
#ifdef LOGDEPTH
|
|
1449
|
-
occlusion = clamp(occlusion, 0.0, 1.0);
|
|
1450
|
-
if (occlusion == 0.0) {
|
|
1451
|
-
occlusion = 1.0;
|
|
1452
|
-
}
|
|
1453
|
-
#endif
|
|
1454
|
-
gl_FragColor = vec4(occlusion, 0.5 + 0.5 * normal);
|
|
1455
|
-
}
|
|
1456
|
-
`},Vt={uniforms:{sceneDepth:{value:null},resolution:{value:new i.Vector2},near:{value:.1},far:{value:1e3},viewMatrixInv:{value:new i.Matrix4},projectionMatrixInv:{value:new i.Matrix4},logDepth:{value:!1},ortho:{value:!1}},depthWrite:!1,depthTest:!1,vertexShader:`
|
|
1457
|
-
varying vec2 vUv;
|
|
1458
|
-
void main() {
|
|
1459
|
-
vUv = uv;
|
|
1460
|
-
gl_Position = vec4(position, 1);
|
|
1461
|
-
}`,fragmentShader:`
|
|
1462
|
-
uniform highp sampler2D sceneDepth;
|
|
1463
|
-
uniform vec2 resolution;
|
|
1464
|
-
uniform float near;
|
|
1465
|
-
uniform float far;
|
|
1466
|
-
uniform bool logDepth;
|
|
1467
|
-
uniform bool ortho;
|
|
1468
|
-
uniform mat4 viewMatrixInv;
|
|
1469
|
-
uniform mat4 projectionMatrixInv;
|
|
1470
|
-
varying vec2 vUv;
|
|
1471
|
-
layout(location = 1) out vec4 gNormal;
|
|
1472
|
-
vec3 getWorldPosLog(vec3 posS) {
|
|
1473
|
-
vec2 uv = posS.xy;
|
|
1474
|
-
float z = posS.z;
|
|
1475
|
-
float nearZ =near;
|
|
1476
|
-
float farZ = far;
|
|
1477
|
-
float depth = pow(2.0, z * log2(farZ + 1.0)) - 1.0;
|
|
1478
|
-
float a = farZ / (farZ - nearZ);
|
|
1479
|
-
float b = farZ * nearZ / (nearZ - farZ);
|
|
1480
|
-
float linDepth = a + b / depth;
|
|
1481
|
-
vec4 clipVec = vec4(uv, linDepth, 1.0) * 2.0 - 1.0;
|
|
1482
|
-
vec4 wpos = projectionMatrixInv * clipVec;
|
|
1483
|
-
return wpos.xyz / wpos.w;
|
|
1484
|
-
}
|
|
1485
|
-
vec3 getWorldPos(float depth, vec2 coord) {
|
|
1486
|
-
if (logDepth && !ortho) {
|
|
1487
|
-
return getWorldPosLog(vec3(coord, depth));
|
|
1488
|
-
}
|
|
1489
|
-
float z = depth * 2.0 - 1.0;
|
|
1490
|
-
vec4 clipSpacePosition = vec4(coord * 2.0 - 1.0, z, 1.0);
|
|
1491
|
-
vec4 viewSpacePosition = projectionMatrixInv * clipSpacePosition;
|
|
1492
|
-
// Perspective division
|
|
1493
|
-
vec4 worldSpacePosition = viewSpacePosition;
|
|
1494
|
-
worldSpacePosition.xyz /= worldSpacePosition.w;
|
|
1495
|
-
return worldSpacePosition.xyz;
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
vec3 computeNormal(vec3 worldPos, vec2 vUv) {
|
|
1499
|
-
ivec2 p = ivec2(vUv * resolution);
|
|
1500
|
-
float c0 = texelFetch(sceneDepth, p, 0).x;
|
|
1501
|
-
float l2 = texelFetch(sceneDepth, p - ivec2(2, 0), 0).x;
|
|
1502
|
-
float l1 = texelFetch(sceneDepth, p - ivec2(1, 0), 0).x;
|
|
1503
|
-
float r1 = texelFetch(sceneDepth, p + ivec2(1, 0), 0).x;
|
|
1504
|
-
float r2 = texelFetch(sceneDepth, p + ivec2(2, 0), 0).x;
|
|
1505
|
-
float b2 = texelFetch(sceneDepth, p - ivec2(0, 2), 0).x;
|
|
1506
|
-
float b1 = texelFetch(sceneDepth, p - ivec2(0, 1), 0).x;
|
|
1507
|
-
float t1 = texelFetch(sceneDepth, p + ivec2(0, 1), 0).x;
|
|
1508
|
-
float t2 = texelFetch(sceneDepth, p + ivec2(0, 2), 0).x;
|
|
1509
|
-
|
|
1510
|
-
float dl = abs((2.0 * l1 - l2) - c0);
|
|
1511
|
-
float dr = abs((2.0 * r1 - r2) - c0);
|
|
1512
|
-
float db = abs((2.0 * b1 - b2) - c0);
|
|
1513
|
-
float dt = abs((2.0 * t1 - t2) - c0);
|
|
1514
|
-
|
|
1515
|
-
vec3 ce = getWorldPos(c0, vUv).xyz;
|
|
1516
|
-
|
|
1517
|
-
vec3 dpdx = (dl < dr) ? ce - getWorldPos(l1, (vUv - vec2(1.0 / resolution.x, 0.0))).xyz
|
|
1518
|
-
: -ce + getWorldPos(r1, (vUv + vec2(1.0 / resolution.x, 0.0))).xyz;
|
|
1519
|
-
vec3 dpdy = (db < dt) ? ce - getWorldPos(b1, (vUv - vec2(0.0, 1.0 / resolution.y))).xyz
|
|
1520
|
-
: -ce + getWorldPos(t1, (vUv + vec2(0.0, 1.0 / resolution.y))).xyz;
|
|
1521
|
-
|
|
1522
|
-
return normalize(cross(dpdx, dpdy));
|
|
1523
|
-
}
|
|
1524
|
-
void main() {
|
|
1525
|
-
vec2 uv = vUv - vec2(0.5) / resolution;
|
|
1526
|
-
vec2 pixelSize = vec2(1.0) / resolution;
|
|
1527
|
-
highp vec2[4] uvSamples;
|
|
1528
|
-
uvSamples[0] = uv;
|
|
1529
|
-
uvSamples[1] = uv + vec2(pixelSize.x, 0.0);
|
|
1530
|
-
uvSamples[2] = uv + vec2(0.0, pixelSize.y);
|
|
1531
|
-
uvSamples[3] = uv + pixelSize;
|
|
1532
|
-
float depth00 = texture2D(sceneDepth, uvSamples[0]).r;
|
|
1533
|
-
float depth10 = texture2D(sceneDepth, uvSamples[1]).r;
|
|
1534
|
-
float depth01 = texture2D(sceneDepth, uvSamples[2]).r;
|
|
1535
|
-
float depth11 = texture2D(sceneDepth, uvSamples[3]).r;
|
|
1536
|
-
float minDepth = min(min(depth00, depth10), min(depth01, depth11));
|
|
1537
|
-
float maxDepth = max(max(depth00, depth10), max(depth01, depth11));
|
|
1538
|
-
float targetDepth = minDepth;
|
|
1539
|
-
// Checkerboard pattern to avoid artifacts
|
|
1540
|
-
if (mod(gl_FragCoord.x + gl_FragCoord.y, 2.0) > 0.5) {
|
|
1541
|
-
targetDepth = maxDepth;
|
|
1542
|
-
}
|
|
1543
|
-
int chosenIndex = 0;
|
|
1544
|
-
float[4] samples;
|
|
1545
|
-
samples[0] = depth00;
|
|
1546
|
-
samples[1] = depth10;
|
|
1547
|
-
samples[2] = depth01;
|
|
1548
|
-
samples[3] = depth11;
|
|
1549
|
-
for(int i = 0; i < 4; ++i) {
|
|
1550
|
-
if (samples[i] == targetDepth) {
|
|
1551
|
-
chosenIndex = i;
|
|
1552
|
-
break;
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
gl_FragColor = vec4(samples[chosenIndex], 0.0, 0.0, 1.0);
|
|
1556
|
-
gNormal = vec4(computeNormal(
|
|
1557
|
-
getWorldPos(samples[chosenIndex], uvSamples[chosenIndex]), uvSamples[chosenIndex]
|
|
1558
|
-
), 0.0);
|
|
1559
|
-
}`};var Wt="5L7pP4UXrOIr/VZ1G3f6p89FIWU7lqc7J3DPxKjJUXODJoHQzf/aNVM+ABlvhXeBGN7iC0WkmTjEaAqOItBfBdaK5KSGV1ET5SOKl3x9JOX5w2sAl6+6KjDhVUHgbqq7DZ5EeYzbdSNxtrQLW/KkPJoOTG4u5CBUZkCKHniY9l7DUgjuz708zG1HIC8qfohi1vPjPH9Lq47ksjRrjwXD4MlVCjdAqYFGodQ8tRmHkOfq4wVRIAHvoavPHvN1lpk3X4Y1yzAPGe8S9KBs3crc4GwlU1dEOXiWol/mgQqxkNqB1xd04+0Bmpwj0GcCc4NUi+c731FUxjvaexCkCJ0qhrJJ++htWqetNC4NewClu8aFRSwrqiJEGe+qtTg4CYCHaF1wJI0sy/ZBQAI0qAMyBvVjWZlv2pdkCaro9eWDLK5I4mbb8E4d7hZr9dDJiTJm6Bmb5S+2F7yal/JPdeLUfwq7jmV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nLOKgXAZ/uTikHI9Afbkhfgfgo9arWbix5eH7WUo9RQygDzwCnVSjbXc7MihEufVj6WGbK963pw8VjY3RS8IH1cy2yZbIcKLO5CgAUcXJfF2+McnDLKtXxyZaf7SPA6KJq+zF2NHyfoeTOwHhGqNcnHVr1hT73pcoyXyfvCYBnG1Bp/aR9t8hoI7CXM3UZOisWGA1SHZ2jf7k9GlRnp3mF/c1AV+JjvUsnZrsybEOQJg/dn/9eJkyykQHjbF56zgcPX6DdMG03WKUMlYz+uOZ+5DZy9E9MZOZ9GMoLFdrIPPQQLjv+GlCMpoyHPXkzIODjHAID2PrnaRpqWVHh0rnieDILKq+Emrd5RnjgE9pDUXWTmHaKuqqYlcgEz4zbi46dbWrAAFBjsQq1rLHIiPJEcwFLCOY4JNlXRXQJqCUKXk2d1RSBGzDP6HDSpo863BhVRFFF6uIpjQV7j5ebFe3UkkO/+coIo2BTAcgBqOtQ134s9a4QJvofuqBYMGOBMsWZ+sn/2AOxDx6SfAnDFGw==";const gs=parseInt(i.REVISION.replace(/\D+/g,"")),Yt=gs>=162?class extends i.WebGLRenderTarget{constructor(e=1,t=1,r=1,a={}){super(e,t,{...a,count:r}),this.isWebGLMultipleRenderTargets=!0}get texture(){return this.textures}}:class extends i.WebGLRenderTarget{constructor(e=1,t=1,r=1,a={}){super(e,t,a),this.isWebGLMultipleRenderTargets=!0;const s=this.texture;this.texture=[];for(let o=0;o<r;o++)this.texture[o]=s.clone(),this.texture[o].isRenderTargetTexture=!0}setSize(e,t,r=1){if(this.width!==e||this.height!==t||this.depth!==r){this.width=e,this.height=t,this.depth=r;for(let a=0,s=this.texture.length;a<s;a++)this.texture[a].image.width=e,this.texture[a].image.height=t,this.texture[a].image.depth=r;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}copy(e){this.dispose(),this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.texture.length=0;for(let t=0,r=e.texture.length;t<r;t++)this.texture[t]=e.texture[t].clone(),this.texture[t].isRenderTargetTexture=!0;return this}},As=Uint8Array.from(atob(Wt),e=>e.charCodeAt(0));function Kt(e,t,r){if(t.getQueryParameter(e,t.QUERY_RESULT_AVAILABLE)){const o=t.getQueryParameter(e,t.QUERY_RESULT)/1e6;r.lastTime=r.lastTime===0?o:r.timeRollingAverage*r.lastTime+(1-r.timeRollingAverage)*o}else setTimeout(()=>{Kt(e,t,r)},1)}class xs extends M{constructor(t,r,a=512,s=512){super(),this.width=a,this.height=s,this.clear=!0,this.camera=r,this.scene=t,this.autosetGamma=!0,this.configuration=new Proxy({aoSamples:16,aoRadius:5,aoTones:0,denoiseSamples:8,denoiseRadius:12,distanceFalloff:1,intensity:5,denoiseIterations:2,renderMode:0,biasOffset:0,biasMultiplier:0,color:new i.Color(0,0,0),gammaCorrection:!0,logarithmicDepthBuffer:!1,screenSpaceRadius:!1,halfRes:!1,depthAwareUpsampling:!0,colorMultiply:!0,transparencyAware:!1,accumulate:!1},{set:(o,n,l)=>{const u=o[n];return o[n]=l,l.equals?l.equals(u)||this.firstFrame():u!==l&&this.firstFrame(),n==="aoSamples"&&u!==l&&this.configureAOPass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),n==="denoiseSamples"&&u!==l&&this.configureDenoisePass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),n==="halfRes"&&u!==l&&(this.configureAOPass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.configureHalfResTargets(),this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.setSize(this.width,this.height)),n==="depthAwareUpsampling"&&u!==l&&this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),n==="gammaCorrection"&&(this.autosetGamma=!1),n==="transparencyAware"&&u!==l&&(this.autoDetectTransparency=!1,this.configureTransparencyTarget()),!0}}),this.samples=[],this.samplesDenoise=[],this.autoDetectTransparency=!0,this.frames=0,this.lastViewMatrix=new i.Matrix4,this.lastProjectionMatrix=new i.Matrix4,this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer),this.configureSampleDependentPasses(),this.configureHalfResTargets(),this.detectTransparency(),this.configureTransparencyTarget(),this.copyQuad=new N(new i.ShaderMaterial({uniforms:{tDiffuse:{value:null}},depthWrite:!1,vertexShader:`
|
|
1560
|
-
varying vec2 vUv;
|
|
1561
|
-
void main() {
|
|
1562
|
-
vUv = uv;
|
|
1563
|
-
gl_Position = vec4(position, 1);
|
|
1564
|
-
}
|
|
1565
|
-
`,fragmentShader:`
|
|
1566
|
-
uniform sampler2D tDiffuse;
|
|
1567
|
-
varying vec2 vUv;
|
|
1568
|
-
void main() {
|
|
1569
|
-
gl_FragColor = texture2D(tDiffuse, vUv);
|
|
1570
|
-
}
|
|
1571
|
-
`})),this.writeTargetInternal=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.LinearFilter,depthBuffer:!1,format:i.RGBAFormat}),this.readTargetInternal=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.LinearFilter,depthBuffer:!1,format:i.RGBAFormat}),this.outputTargetInternal=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.LinearFilter,depthBuffer:!1}),this.accumulationRenderTarget=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.LinearFilter,depthBuffer:!1,format:i.RGBAFormat,type:i.HalfFloatType,stencilBuffer:!1,depthBuffer:!1,alpha:!0}),this.accumulationQuad=new N(new i.ShaderMaterial({uniforms:{frame:{value:0},tDiffuse:{value:null}},transparent:!0,opacity:1,vertexShader:`
|
|
1572
|
-
varying vec2 vUv;
|
|
1573
|
-
void main() {
|
|
1574
|
-
vUv = uv;
|
|
1575
|
-
gl_Position = vec4(position, 1);
|
|
1576
|
-
}`,fragmentShader:`
|
|
1577
|
-
uniform sampler2D tDiffuse;
|
|
1578
|
-
uniform float frame;
|
|
1579
|
-
varying vec2 vUv;
|
|
1580
|
-
void main() {
|
|
1581
|
-
vec4 color = texture2D(tDiffuse, vUv);
|
|
1582
|
-
gl_FragColor = vec4(color.rgb, 1.0 / (frame + 1.0));
|
|
1583
|
-
}
|
|
1584
|
-
`})),this.bluenoise=new i.DataTexture(As,128,128),this.bluenoise.colorSpace=i.NoColorSpace,this.bluenoise.wrapS=i.RepeatWrapping,this.bluenoise.wrapT=i.RepeatWrapping,this.bluenoise.minFilter=i.NearestFilter,this.bluenoise.magFilter=i.NearestFilter,this.bluenoise.needsUpdate=!0,this.lastTime=0,this.timeRollingAverage=.99,this.needsDepthTexture=!0,this.needsSwap=!0,this._r=new i.Vector2,this._c=new i.Color}configureHalfResTargets(){this.firstFrame(),this.configuration.halfRes?(this.depthDownsampleTarget=new Yt(this.width/2,this.height/2,2),this.depthDownsampleTarget.textures[0].format=i.RedFormat,this.depthDownsampleTarget.textures[0].type=i.FloatType,this.depthDownsampleTarget.textures[0].minFilter=i.NearestFilter,this.depthDownsampleTarget.textures[0].magFilter=i.NearestFilter,this.depthDownsampleTarget.textures[0].depthBuffer=!1,this.depthDownsampleTarget.textures[1].format=i.RGBAFormat,this.depthDownsampleTarget.textures[1].type=i.HalfFloatType,this.depthDownsampleTarget.textures[1].minFilter=i.NearestFilter,this.depthDownsampleTarget.textures[1].magFilter=i.NearestFilter,this.depthDownsampleTarget.textures[1].depthBuffer=!1,this.depthDownsampleQuad=new N(new i.ShaderMaterial(Vt))):(this.depthDownsampleTarget&&(this.depthDownsampleTarget.dispose(),this.depthDownsampleTarget=null),this.depthDownsampleQuad&&(this.depthDownsampleQuad.dispose(),this.depthDownsampleQuad=null))}detectTransparency(){if(this.autoDetectTransparency){let t=!1;this.scene.traverse(r=>{r.material&&r.material.transparent&&(t=!0)}),t&&(this.configuration.transparencyAware=!0)}}configureTransparencyTarget(){this.configuration.transparencyAware?(this.transparencyRenderTargetDWFalse=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.NearestFilter,type:i.HalfFloatType,format:i.RGBAFormat}),this.transparencyRenderTargetDWTrue=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.NearestFilter,type:i.HalfFloatType,format:i.RGBAFormat}),this.transparencyRenderTargetDWTrue.depthTexture=new i.DepthTexture(this.width,this.height,i.UnsignedIntType),this.depthCopyPass=new N(new i.ShaderMaterial({uniforms:{depthTexture:{value:this.depthTexture}},vertexShader:`
|
|
1585
|
-
varying vec2 vUv;
|
|
1586
|
-
void main() {
|
|
1587
|
-
vUv = uv;
|
|
1588
|
-
gl_Position = vec4(position, 1);
|
|
1589
|
-
}`,fragmentShader:`
|
|
1590
|
-
uniform sampler2D depthTexture;
|
|
1591
|
-
varying vec2 vUv;
|
|
1592
|
-
void main() {
|
|
1593
|
-
gl_FragDepth = texture2D(depthTexture, vUv).r + 0.00001;
|
|
1594
|
-
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
1595
|
-
}
|
|
1596
|
-
`}))):(this.transparencyRenderTargetDWFalse&&(this.transparencyRenderTargetDWFalse.dispose(),this.transparencyRenderTargetDWFalse=null),this.transparencyRenderTargetDWTrue&&(this.transparencyRenderTargetDWTrue.dispose(),this.transparencyRenderTargetDWTrue=null),this.depthCopyPass&&(this.depthCopyPass.dispose(),this.depthCopyPass=null))}renderTransparency(t){const r=this.scene.background,a=t.getClearColor(new i.Color),s=t.getClearAlpha(),o=new Map,n=t.autoClearDepth;this.scene.traverse(l=>{o.set(l,l.visible)}),this.scene.background=null,t.autoClearDepth=!1,t.setClearColor(new i.Color(0,0,0),0),this.depthCopyPass.material.uniforms.depthTexture.value=this.depthTexture,t.setRenderTarget(this.transparencyRenderTargetDWFalse),this.scene.traverse(l=>{l.material&&(l.visible=o.get(l)&&(l.material.transparent&&!l.material.depthWrite&&!l.userData.treatAsOpaque||!!l.userData.cannotReceiveAO))}),t.clear(!0,!0,!0),this.depthCopyPass.render(t),t.render(this.scene,this.camera),t.setRenderTarget(this.transparencyRenderTargetDWTrue),this.scene.traverse(l=>{l.material&&(l.visible=o.get(l)&&l.material.transparent&&l.material.depthWrite&&!l.userData.treatAsOpaque)}),t.clear(!0,!0,!0),this.depthCopyPass.render(t),t.render(this.scene,this.camera),this.scene.traverse(l=>{l.visible=o.get(l)}),t.setClearColor(a,s),this.scene.background=r,t.autoClearDepth=n}configureSampleDependentPasses(){this.configureAOPass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.configureDenoisePass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera)}configureAOPass(t=!1,r=!1){this.firstFrame(),this.samples=this.generateHemisphereSamples(this.configuration.aoSamples);const a={...zt};a.fragmentShader=a.fragmentShader.replace("16",this.configuration.aoSamples).replace("16.0",this.configuration.aoSamples+".0"),t&&(a.fragmentShader=`#define LOGDEPTH
|
|
1597
|
-
`+a.fragmentShader),r&&(a.fragmentShader=`#define ORTHO
|
|
1598
|
-
`+a.fragmentShader),this.configuration.halfRes&&(a.fragmentShader=`#define HALFRES
|
|
1599
|
-
`+a.fragmentShader),this.effectShaderQuad?(this.effectShaderQuad.material.dispose(),this.effectShaderQuad.material=new i.ShaderMaterial(a)):this.effectShaderQuad=new N(new i.ShaderMaterial(a))}configureDenoisePass(t=!1,r=!1){this.firstFrame(),this.samplesDenoise=this.generateDenoiseSamples(this.configuration.denoiseSamples,11);const a={...Qt};a.fragmentShader=a.fragmentShader.replace("16",this.configuration.denoiseSamples),t&&(a.fragmentShader=`#define LOGDEPTH
|
|
1600
|
-
`+a.fragmentShader),r&&(a.fragmentShader=`#define ORTHO
|
|
1601
|
-
`+a.fragmentShader),this.poissonBlurQuad?(this.poissonBlurQuad.material.dispose(),this.poissonBlurQuad.material=new i.ShaderMaterial(a)):this.poissonBlurQuad=new N(new i.ShaderMaterial(a))}configureEffectCompositer(t=!1,r=!1){this.firstFrame();const a={...kt};t&&(a.fragmentShader=`#define LOGDEPTH
|
|
1602
|
-
`+a.fragmentShader),r&&(a.fragmentShader=`#define ORTHO
|
|
1603
|
-
`+a.fragmentShader),this.configuration.halfRes&&this.configuration.depthAwareUpsampling&&(a.fragmentShader=`#define HALFRES
|
|
1604
|
-
`+a.fragmentShader),this.effectCompositerQuad?(this.effectCompositerQuad.material.dispose(),this.effectCompositerQuad.material=new i.ShaderMaterial(a)):this.effectCompositerQuad=new N(new i.ShaderMaterial(a))}generateHemisphereSamples(t){const r=[];for(let a=0;a<t;a++){const s=2.399963*a,o=Math.sqrt(a+.5)/Math.sqrt(t),n=o*Math.cos(s),l=o*Math.sin(s),u=Math.sqrt(1-(n*n+l*l));r.push(new i.Vector3(n,l,u))}return r}generateDenoiseSamples(t,r){const a=2*Math.PI*r/t,s=1/t,o=s,n=[];let l=s,u=0;for(let c=0;c<t;c++)n.push(new i.Vector2(Math.cos(u),Math.sin(u)).multiplyScalar(Math.pow(l,.75))),l+=o,u+=a;return n}setSize(t,r){this.firstFrame(),this.width=t,this.height=r;const a=this.configuration.halfRes?.5:1;this.writeTargetInternal.setSize(t*a,r*a),this.readTargetInternal.setSize(t*a,r*a),this.accumulationRenderTarget.setSize(t*a,r*a),this.configuration.halfRes&&this.depthDownsampleTarget.setSize(t*a,r*a),this.configuration.transparencyAware&&(this.transparencyRenderTargetDWFalse.setSize(t,r),this.transparencyRenderTargetDWTrue.setSize(t,r)),this.outputTargetInternal.setSize(t,r)}setDepthTexture(t){this.depthTexture=t}firstFrame(){this.needsFrame=!0}render(t,r,a){const s=t.xr.enabled;t.xr.enabled=!1,t.capabilities.logarithmicDepthBuffer!==this.configuration.logarithmicDepthBuffer&&(this.configuration.logarithmicDepthBuffer=t.capabilities.logarithmicDepthBuffer,this.configureAOPass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.configureDenoisePass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera)),this.detectTransparency(),(r.texture.type!==this.outputTargetInternal.texture.type||r.texture.format!==this.outputTargetInternal.texture.format)&&(this.outputTargetInternal.texture.type=r.texture.type,this.outputTargetInternal.texture.format=r.texture.format,this.outputTargetInternal.texture.needsUpdate=!0),this.camera.updateMatrixWorld(),this.lastViewMatrix.equals(this.camera.matrixWorldInverse)&&this.lastProjectionMatrix.equals(this.camera.projectionMatrix)&&this.configuration.accumulate&&!this.needsFrame?this.frame++:(this.configuration.accumulate&&(t.setRenderTarget(this.accumulationRenderTarget),t.clear(!0,!0,!0)),this.frame=0,this.needsFrame=!1),this.lastViewMatrix.copy(this.camera.matrixWorldInverse),this.lastProjectionMatrix.copy(this.camera.projectionMatrix);let o,n,l;this.debugMode&&(o=t.getContext(),n=o.getExtension("EXT_disjoint_timer_query_webgl2"),n===null&&(console.error("EXT_disjoint_timer_query_webgl2 not available, disabling debug mode."),this.debugMode=!1)),this.debugMode&&(l=o.createQuery(),o.beginQuery(n.TIME_ELAPSED_EXT,l)),this.configuration.transparencyAware&&this.renderTransparency(t),this._r.set(this.width,this.height);let u=this.configuration.aoRadius;if(this.configuration.halfRes&&this.configuration.screenSpaceRadius&&(u*=.5),this.frame<1024/this.configuration.aoSamples){this.configuration.halfRes&&(t.setRenderTarget(this.depthDownsampleTarget),this.depthDownsampleQuad.material.uniforms.sceneDepth.value=this.depthTexture,this.depthDownsampleQuad.material.uniforms.resolution.value=this._r,this.depthDownsampleQuad.material.uniforms.near.value=this.camera.near,this.depthDownsampleQuad.material.uniforms.far.value=this.camera.far,this.depthDownsampleQuad.material.uniforms.projectionMatrixInv.value=this.camera.projectionMatrixInverse,this.depthDownsampleQuad.material.uniforms.viewMatrixInv.value=this.camera.matrixWorld,this.depthDownsampleQuad.material.uniforms.logDepth.value=this.configuration.logarithmicDepthBuffer,this.depthDownsampleQuad.material.uniforms.ortho.value=this.camera.isOrthographicCamera,this.depthDownsampleQuad.render(t)),this.effectShaderQuad.material.uniforms.sceneDiffuse.value=r.texture,this.effectShaderQuad.material.uniforms.sceneDepth.value=this.configuration.halfRes?this.depthDownsampleTarget.textures[0]:this.depthTexture,this.effectShaderQuad.material.uniforms.sceneNormal.value=this.configuration.halfRes?this.depthDownsampleTarget.textures[1]:null,this.effectShaderQuad.material.uniforms.projMat.value=this.camera.projectionMatrix,this.effectShaderQuad.material.uniforms.viewMat.value=this.camera.matrixWorldInverse,this.effectShaderQuad.material.uniforms.projViewMat.value=this.camera.projectionMatrix.clone().multiply(this.camera.matrixWorldInverse.clone()),this.effectShaderQuad.material.uniforms.projectionMatrixInv.value=this.camera.projectionMatrixInverse,this.effectShaderQuad.material.uniforms.viewMatrixInv.value=this.camera.matrixWorld,this.effectShaderQuad.material.uniforms.cameraPos.value=this.camera.getWorldPosition(new i.Vector3),this.effectShaderQuad.material.uniforms.biasAdjustment.value=new i.Vector2(this.configuration.biasOffset,this.configuration.biasMultiplier),this.effectShaderQuad.material.uniforms.resolution.value=this.configuration.halfRes?this._r.clone().multiplyScalar(.5).floor():this._r,this.effectShaderQuad.material.uniforms.time.value=performance.now()/1e3,this.effectShaderQuad.material.uniforms.samples.value=this.samples,this.effectShaderQuad.material.uniforms.bluenoise.value=this.bluenoise,this.effectShaderQuad.material.uniforms.radius.value=u,this.effectShaderQuad.material.uniforms.distanceFalloff.value=this.configuration.distanceFalloff,this.effectShaderQuad.material.uniforms.near.value=this.camera.near,this.effectShaderQuad.material.uniforms.far.value=this.camera.far,this.effectShaderQuad.material.uniforms.logDepth.value=t.capabilities.logarithmicDepthBuffer,this.effectShaderQuad.material.uniforms.ortho.value=this.camera.isOrthographicCamera,this.effectShaderQuad.material.uniforms.screenSpaceRadius.value=this.configuration.screenSpaceRadius,this.effectShaderQuad.material.uniforms.frame.value=this.frame,t.setRenderTarget(this.writeTargetInternal),this.effectShaderQuad.render(t);for(let f=0;f<this.configuration.denoiseIterations;f++)[this.writeTargetInternal,this.readTargetInternal]=[this.readTargetInternal,this.writeTargetInternal],this.poissonBlurQuad.material.uniforms.tDiffuse.value=this.readTargetInternal.texture,this.poissonBlurQuad.material.uniforms.sceneDepth.value=this.configuration.halfRes?this.depthDownsampleTarget.textures[0]:this.depthTexture,this.poissonBlurQuad.material.uniforms.projMat.value=this.camera.projectionMatrix,this.poissonBlurQuad.material.uniforms.viewMat.value=this.camera.matrixWorldInverse,this.poissonBlurQuad.material.uniforms.projectionMatrixInv.value=this.camera.projectionMatrixInverse,this.poissonBlurQuad.material.uniforms.viewMatrixInv.value=this.camera.matrixWorld,this.poissonBlurQuad.material.uniforms.cameraPos.value=this.camera.getWorldPosition(new i.Vector3),this.poissonBlurQuad.material.uniforms.resolution.value=this.configuration.halfRes?this._r.clone().multiplyScalar(.5).floor():this._r,this.poissonBlurQuad.material.uniforms.time.value=performance.now()/1e3,this.poissonBlurQuad.material.uniforms.blueNoise.value=this.bluenoise,this.poissonBlurQuad.material.uniforms.radius.value=this.configuration.denoiseRadius*(this.configuration.halfRes?.5:1),this.poissonBlurQuad.material.uniforms.worldRadius.value=u,this.poissonBlurQuad.material.uniforms.distanceFalloff.value=this.configuration.distanceFalloff,this.poissonBlurQuad.material.uniforms.index.value=f,this.poissonBlurQuad.material.uniforms.poissonDisk.value=this.samplesDenoise,this.poissonBlurQuad.material.uniforms.near.value=this.camera.near,this.poissonBlurQuad.material.uniforms.far.value=this.camera.far,this.poissonBlurQuad.material.uniforms.logDepth.value=t.capabilities.logarithmicDepthBuffer,this.poissonBlurQuad.material.uniforms.screenSpaceRadius.value=this.configuration.screenSpaceRadius,t.setRenderTarget(this.writeTargetInternal),this.poissonBlurQuad.render(t);t.setRenderTarget(this.accumulationRenderTarget);const c=t.autoClear;t.autoClear=!1,this.accumulationQuad.material.uniforms.tDiffuse.value=this.writeTargetInternal.texture,this.accumulationQuad.material.uniforms.frame.value=this.frame,this.accumulationQuad.render(t),t.autoClear=c}this.configuration.transparencyAware&&(this.effectCompositerQuad.material.uniforms.transparencyDWFalse.value=this.transparencyRenderTargetDWFalse.texture,this.effectCompositerQuad.material.uniforms.transparencyDWTrue.value=this.transparencyRenderTargetDWTrue.texture,this.effectCompositerQuad.material.uniforms.transparencyDWTrueDepth.value=this.transparencyRenderTargetDWTrue.depthTexture,this.effectCompositerQuad.material.uniforms.transparencyAware.value=!0),this.effectCompositerQuad.material.uniforms.sceneDiffuse.value=r.texture,this.effectCompositerQuad.material.uniforms.sceneDepth.value=this.depthTexture,this.effectCompositerQuad.material.uniforms.aoTones.value=this.configuration.aoTones,this.effectCompositerQuad.material.uniforms.near.value=this.camera.near,this.effectCompositerQuad.material.uniforms.far.value=this.camera.far,this.effectCompositerQuad.material.uniforms.projectionMatrixInv.value=this.camera.projectionMatrixInverse,this.effectCompositerQuad.material.uniforms.viewMatrixInv.value=this.camera.matrixWorld,this.effectCompositerQuad.material.uniforms.logDepth.value=t.capabilities.logarithmicDepthBuffer,this.effectCompositerQuad.material.uniforms.ortho.value=this.camera.isOrthographicCamera,this.effectCompositerQuad.material.uniforms.downsampledDepth.value=this.configuration.halfRes?this.depthDownsampleTarget.textures[0]:this.depthTexture,this.effectCompositerQuad.material.uniforms.resolution.value=this._r,this.effectCompositerQuad.material.uniforms.blueNoise.value=this.bluenoise,this.effectCompositerQuad.material.uniforms.intensity.value=this.configuration.intensity,this.effectCompositerQuad.material.uniforms.renderMode.value=this.configuration.renderMode,this.effectCompositerQuad.material.uniforms.screenSpaceRadius.value=this.configuration.screenSpaceRadius,this.effectCompositerQuad.material.uniforms.radius.value=u,this.effectCompositerQuad.material.uniforms.distanceFalloff.value=this.configuration.distanceFalloff,this.effectCompositerQuad.material.uniforms.gammaCorrection.value=this.autosetGamma?this.renderToScreen:this.configuration.gammaCorrection,this.effectCompositerQuad.material.uniforms.tDiffuse.value=this.accumulationRenderTarget.texture,this.effectCompositerQuad.material.uniforms.color.value=this._c.copy(this.configuration.color).convertSRGBToLinear(),this.effectCompositerQuad.material.uniforms.colorMultiply.value=this.configuration.colorMultiply,this.effectCompositerQuad.material.uniforms.cameraPos.value=this.camera.getWorldPosition(new i.Vector3),this.effectCompositerQuad.material.uniforms.fog.value=!!this.scene.fog,this.scene.fog&&(this.scene.fog.isFog?(this.effectCompositerQuad.material.uniforms.fogExp.value=!1,this.effectCompositerQuad.material.uniforms.fogNear.value=this.scene.fog.near,this.effectCompositerQuad.material.uniforms.fogFar.value=this.scene.fog.far):this.scene.fog.isFogExp2?(this.effectCompositerQuad.material.uniforms.fogExp.value=!0,this.effectCompositerQuad.material.uniforms.fogDensity.value=this.scene.fog.density):console.error(`Unsupported fog type ${this.scene.fog.constructor.name} in SSAOPass.`)),t.setRenderTarget(this.outputTargetInternal),this.effectCompositerQuad.render(t),t.setRenderTarget(this.renderToScreen?null:a),this.copyQuad.material.uniforms.tDiffuse.value=this.outputTargetInternal.texture,this.copyQuad.render(t),this.debugMode&&(o.endQuery(n.TIME_ELAPSED_EXT),Kt(l,o,this)),t.xr.enabled=s}enableDebugMode(){this.debugMode=!0}disableDebugMode(){this.debugMode=!1}setDisplayMode(t){this.configuration.renderMode=["Combined","AO","No AO","Split","Split AO"].indexOf(t)}setQualityMode(t){t==="Performance"?(this.configuration.aoSamples=8,this.configuration.denoiseSamples=4,this.configuration.denoiseRadius=12):t==="Low"?(this.configuration.aoSamples=16,this.configuration.denoiseSamples=4,this.configuration.denoiseRadius=12):t==="Medium"?(this.configuration.aoSamples=16,this.configuration.denoiseSamples=8,this.configuration.denoiseRadius=12):t==="High"?(this.configuration.aoSamples=64,this.configuration.denoiseSamples=8,this.configuration.denoiseRadius=6):t==="Ultra"&&(this.configuration.aoSamples=64,this.configuration.denoiseSamples=16,this.configuration.denoiseRadius=6)}}const Ds=Uint8Array.from(atob(Wt),e=>e.charCodeAt(0));function Xt(e,t,r){if(t.getQueryParameter(e,t.QUERY_RESULT_AVAILABLE)){const o=t.getQueryParameter(e,t.QUERY_RESULT)/1e6;r.lastTime=r.lastTime===0?o:r.timeRollingAverage*r.lastTime+(1-r.timeRollingAverage)*o}else setTimeout(()=>{Xt(e,t,r)},1)}class Ts extends Zt.Pass{constructor(t,r,a=512,s=512){super(),this.width=a,this.height=s,this.clear=!0,this.camera=r,this.scene=t,this.configuration=new Proxy({aoSamples:16,aoRadius:5,aoTones:0,denoiseSamples:8,denoiseRadius:12,distanceFalloff:1,intensity:5,denoiseIterations:2,renderMode:0,biasOffset:0,biasMultiplier:0,color:new i.Color(0,0,0),gammaCorrection:!0,logarithmicDepthBuffer:!1,screenSpaceRadius:!1,halfRes:!1,depthAwareUpsampling:!0,autoRenderBeauty:!0,colorMultiply:!0,transparencyAware:!1,stencil:!1,accumulate:!1},{set:(o,n,l)=>{const u=o[n];return o[n]=l,l.equals?l.equals(u)||this.firstFrame():u!==l&&this.firstFrame(),n==="aoSamples"&&u!==l&&this.configureAOPass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),n==="denoiseSamples"&&u!==l&&this.configureDenoisePass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),n==="halfRes"&&u!==l&&(this.configureAOPass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.configureHalfResTargets(),this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.setSize(this.width,this.height)),n==="depthAwareUpsampling"&&u!==l&&this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),n==="transparencyAware"&&u!==l&&(this.autoDetectTransparency=!1,this.configureTransparencyTarget()),n==="stencil"&&u!==l&&(this.beautyRenderTarget.dispose(),this.beautyRenderTarget=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.NearestFilter,type:i.HalfFloatType,format:i.RGBAFormat,stencilBuffer:l}),this.beautyRenderTarget.depthTexture=new i.DepthTexture(this.width,this.height,l?i.UnsignedInt248Type:i.UnsignedIntType),this.beautyRenderTarget.depthTexture.format=l?i.DepthStencilFormat:i.DepthFormat),!0}}),this.samples=[],this.samplesDenoise=[],this.autoDetectTransparency=!0,this.frame=0,this.lastViewMatrix=new i.Matrix4,this.lastProjectionMatrix=new i.Matrix4,this.beautyRenderTarget=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.NearestFilter,type:i.HalfFloatType,format:i.RGBAFormat,stencilBuffer:!1}),this.beautyRenderTarget.depthTexture=new i.DepthTexture(this.width,this.height,i.UnsignedIntType),this.beautyRenderTarget.depthTexture.format=i.DepthFormat,this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.configureSampleDependentPasses(),this.configureHalfResTargets(),this.detectTransparency(),this.configureTransparencyTarget(),this.writeTargetInternal=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.LinearFilter,depthBuffer:!1,format:i.RGBAFormat}),this.readTargetInternal=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.LinearFilter,depthBuffer:!1,format:i.RGBAFormat}),this.accumulationRenderTarget=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.LinearFilter,depthBuffer:!1,format:i.RGBAFormat,type:i.HalfFloatType,stencilBuffer:!1,depthBuffer:!1,alpha:!0}),this.bluenoise=new i.DataTexture(Ds,128,128),this.accumulationQuad=new N(new i.ShaderMaterial({uniforms:{frame:{value:0},tDiffuse:{value:null}},transparent:!0,opacity:1,vertexShader:`
|
|
1605
|
-
varying vec2 vUv;
|
|
1606
|
-
void main() {
|
|
1607
|
-
vUv = uv;
|
|
1608
|
-
gl_Position = vec4(position, 1);
|
|
1609
|
-
}`,fragmentShader:`
|
|
1610
|
-
uniform sampler2D tDiffuse;
|
|
1611
|
-
uniform float frame;
|
|
1612
|
-
varying vec2 vUv;
|
|
1613
|
-
void main() {
|
|
1614
|
-
vec4 color = texture2D(tDiffuse, vUv);
|
|
1615
|
-
gl_FragColor = vec4(color.rgb, 1.0 / (frame + 1.0));
|
|
1616
|
-
}
|
|
1617
|
-
`})),this.bluenoise.colorSpace=i.NoColorSpace,this.bluenoise.wrapS=i.RepeatWrapping,this.bluenoise.wrapT=i.RepeatWrapping,this.bluenoise.minFilter=i.NearestFilter,this.bluenoise.magFilter=i.NearestFilter,this.bluenoise.needsUpdate=!0,this.lastTime=0,this.timeRollingAverage=.99,this._r=new i.Vector2,this._c=new i.Color}configureHalfResTargets(){this.firstFrame(),this.configuration.halfRes?(this.depthDownsampleTarget=new Yt(this.width/2,this.height/2,2),this.depthDownsampleTarget.textures[0].format=i.RedFormat,this.depthDownsampleTarget.textures[0].type=i.FloatType,this.depthDownsampleTarget.textures[0].minFilter=i.NearestFilter,this.depthDownsampleTarget.textures[0].magFilter=i.NearestFilter,this.depthDownsampleTarget.textures[0].depthBuffer=!1,this.depthDownsampleTarget.textures[1].format=i.RGBAFormat,this.depthDownsampleTarget.textures[1].type=i.HalfFloatType,this.depthDownsampleTarget.textures[1].minFilter=i.NearestFilter,this.depthDownsampleTarget.textures[1].magFilter=i.NearestFilter,this.depthDownsampleTarget.textures[1].depthBuffer=!1,this.depthDownsampleQuad=new N(new i.ShaderMaterial(Vt))):(this.depthDownsampleTarget&&(this.depthDownsampleTarget.dispose(),this.depthDownsampleTarget=null),this.depthDownsampleQuad&&(this.depthDownsampleQuad.dispose(),this.depthDownsampleQuad=null))}detectTransparency(){if(this.autoDetectTransparency){let t=!1;this.scene.traverse(r=>{r.material&&r.material.transparent&&(t=!0)}),this.configuration.transparencyAware=t}}configureTransparencyTarget(){this.configuration.transparencyAware?(this.transparencyRenderTargetDWFalse=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.NearestFilter,type:i.HalfFloatType,format:i.RGBAFormat}),this.transparencyRenderTargetDWTrue=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.LinearFilter,magFilter:i.NearestFilter,type:i.HalfFloatType,format:i.RGBAFormat}),this.transparencyRenderTargetDWTrue.depthTexture=new i.DepthTexture(this.width,this.height,i.UnsignedIntType),this.depthCopyPass=new N(new i.ShaderMaterial({uniforms:{depthTexture:{value:this.beautyRenderTarget.depthTexture}},vertexShader:`
|
|
1618
|
-
varying vec2 vUv;
|
|
1619
|
-
void main() {
|
|
1620
|
-
vUv = uv;
|
|
1621
|
-
gl_Position = vec4(position, 1);
|
|
1622
|
-
}`,fragmentShader:`
|
|
1623
|
-
uniform sampler2D depthTexture;
|
|
1624
|
-
varying vec2 vUv;
|
|
1625
|
-
void main() {
|
|
1626
|
-
gl_FragDepth = texture2D(depthTexture, vUv).r + 0.00001;
|
|
1627
|
-
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
1628
|
-
}
|
|
1629
|
-
`}))):(this.transparencyRenderTargetDWFalse&&(this.transparencyRenderTargetDWFalse.dispose(),this.transparencyRenderTargetDWFalse=null),this.transparencyRenderTargetDWTrue&&(this.transparencyRenderTargetDWTrue.dispose(),this.transparencyRenderTargetDWTrue=null),this.depthCopyPass&&(this.depthCopyPass.dispose(),this.depthCopyPass=null))}renderTransparency(t){const r=this.scene.background,a=t.getClearColor(new i.Color),s=t.getClearAlpha(),o=new Map,n=t.autoClearDepth;this.scene.traverse(l=>{o.set(l,l.visible)}),this.scene.background=null,t.autoClearDepth=!1,t.setClearColor(new i.Color(0,0,0),0),this.depthCopyPass.material.uniforms.depthTexture.value=this.beautyRenderTarget.depthTexture,t.setRenderTarget(this.transparencyRenderTargetDWFalse),this.scene.traverse(l=>{l.material&&(l.visible=o.get(l)&&(l.material.transparent&&!l.material.depthWrite&&!l.userData.treatAsOpaque||!!l.userData.cannotReceiveAO))}),t.clear(!0,!0,!0),this.depthCopyPass.render(t),t.render(this.scene,this.camera),t.setRenderTarget(this.transparencyRenderTargetDWTrue),this.scene.traverse(l=>{l.material&&(l.visible=o.get(l)&&l.material.transparent&&l.material.depthWrite&&!l.userData.treatAsOpaque)}),t.clear(!0,!0,!0),this.depthCopyPass.render(t),t.render(this.scene,this.camera),this.scene.traverse(l=>{l.visible=o.get(l)}),t.setClearColor(a,s),this.scene.background=r,t.autoClearDepth=n}configureSampleDependentPasses(){this.firstFrame(),this.configureAOPass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.configureDenoisePass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera)}configureAOPass(t=!1,r=!1){this.firstFrame(),this.samples=this.generateHemisphereSamples(this.configuration.aoSamples);const a={...zt};a.fragmentShader=a.fragmentShader.replace("16",this.configuration.aoSamples).replace("16.0",this.configuration.aoSamples+".0"),t&&(a.fragmentShader=`#define LOGDEPTH
|
|
1630
|
-
`+a.fragmentShader),r&&(a.fragmentShader=`#define ORTHO
|
|
1631
|
-
`+a.fragmentShader),this.configuration.halfRes&&(a.fragmentShader=`#define HALFRES
|
|
1632
|
-
`+a.fragmentShader),this.effectShaderQuad?(this.effectShaderQuad.material.dispose(),this.effectShaderQuad.material=new i.ShaderMaterial(a)):this.effectShaderQuad=new N(new i.ShaderMaterial(a))}configureDenoisePass(t=!1,r=!1){this.firstFrame(),this.samplesDenoise=this.generateDenoiseSamples(this.configuration.denoiseSamples,11);const a={...Qt};a.fragmentShader=a.fragmentShader.replace("16",this.configuration.denoiseSamples),t&&(a.fragmentShader=`#define LOGDEPTH
|
|
1633
|
-
`+a.fragmentShader),r&&(a.fragmentShader=`#define ORTHO
|
|
1634
|
-
`+a.fragmentShader),this.poissonBlurQuad?(this.poissonBlurQuad.material.dispose(),this.poissonBlurQuad.material=new i.ShaderMaterial(a)):this.poissonBlurQuad=new N(new i.ShaderMaterial(a))}configureEffectCompositer(t=!1,r=!1){this.firstFrame();const a={...kt};t&&(a.fragmentShader=`#define LOGDEPTH
|
|
1635
|
-
`+a.fragmentShader),r&&(a.fragmentShader=`#define ORTHO
|
|
1636
|
-
`+a.fragmentShader),this.configuration.halfRes&&this.configuration.depthAwareUpsampling&&(a.fragmentShader=`#define HALFRES
|
|
1637
|
-
`+a.fragmentShader),this.effectCompositerQuad?(this.effectCompositerQuad.material.dispose(),this.effectCompositerQuad.material=new i.ShaderMaterial(a)):this.effectCompositerQuad=new N(new i.ShaderMaterial(a))}generateHemisphereSamples(t){const r=[];for(let a=0;a<t;a++){const s=2.399963*a;let o=Math.sqrt(a+.5)/Math.sqrt(t);const n=o*Math.cos(s),l=o*Math.sin(s),u=Math.sqrt(1-(n*n+l*l));r.push(new i.Vector3(n,l,u))}return r}generateDenoiseSamples(t,r){const a=2*Math.PI*r/t,s=1/t,o=s,n=[];let l=s,u=0;for(let c=0;c<t;c++)n.push(new i.Vector2(Math.cos(u),Math.sin(u)).multiplyScalar(Math.pow(l,.75))),l+=o,u+=a;return n}setSize(t,r){this.firstFrame(),this.width=t,this.height=r;const a=this.configuration.halfRes?.5:1;this.beautyRenderTarget.setSize(t,r),this.writeTargetInternal.setSize(t*a,r*a),this.readTargetInternal.setSize(t*a,r*a),this.accumulationRenderTarget.setSize(t*a,r*a),this.configuration.halfRes&&this.depthDownsampleTarget.setSize(t*a,r*a),this.configuration.transparencyAware&&(this.transparencyRenderTargetDWFalse.setSize(t,r),this.transparencyRenderTargetDWTrue.setSize(t,r))}firstFrame(){this.needsFrame=!0}render(t,r,a,s,o){t.capabilities.logarithmicDepthBuffer!==this.configuration.logarithmicDepthBuffer&&(this.configuration.logarithmicDepthBuffer=t.capabilities.logarithmicDepthBuffer,this.configureAOPass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.configureDenoisePass(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera),this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer,this.camera.isOrthographicCamera)),this.detectTransparency(),this.camera.updateMatrixWorld(),this.lastViewMatrix.equals(this.camera.matrixWorldInverse)&&this.lastProjectionMatrix.equals(this.camera.projectionMatrix)&&this.configuration.accumulate&&!this.needsFrame?this.frame++:(this.configuration.accumulate&&(t.setRenderTarget(this.accumulationRenderTarget),t.clear(!0,!0,!0)),this.frame=0,this.needsFrame=!1),this.lastViewMatrix.copy(this.camera.matrixWorldInverse),this.lastProjectionMatrix.copy(this.camera.projectionMatrix);let n,l,u;this.debugMode&&(n=t.getContext(),l=n.getExtension("EXT_disjoint_timer_query_webgl2"),l===null&&(console.error("EXT_disjoint_timer_query_webgl2 not available, disabling debug mode."),this.debugMode=!1)),this.configuration.autoRenderBeauty&&(t.setRenderTarget(this.beautyRenderTarget),t.render(this.scene,this.camera),this.configuration.transparencyAware&&this.renderTransparency(t)),this.debugMode&&(u=n.createQuery(),n.beginQuery(l.TIME_ELAPSED_EXT,u));const c=t.xr.enabled;t.xr.enabled=!1,this._r.set(this.width,this.height);let f=this.configuration.aoRadius;if(this.configuration.halfRes&&this.configuration.screenSpaceRadius&&(f*=.5),this.frame<1024/this.configuration.aoSamples){this.configuration.halfRes&&(t.setRenderTarget(this.depthDownsampleTarget),this.depthDownsampleQuad.material.uniforms.sceneDepth.value=this.beautyRenderTarget.depthTexture,this.depthDownsampleQuad.material.uniforms.resolution.value=this._r,this.depthDownsampleQuad.material.uniforms.near.value=this.camera.near,this.depthDownsampleQuad.material.uniforms.far.value=this.camera.far,this.depthDownsampleQuad.material.uniforms.projectionMatrixInv.value=this.camera.projectionMatrixInverse,this.depthDownsampleQuad.material.uniforms.viewMatrixInv.value=this.camera.matrixWorld,this.depthDownsampleQuad.material.uniforms.logDepth.value=this.configuration.logarithmicDepthBuffer,this.depthDownsampleQuad.material.uniforms.ortho.value=this.camera.isOrthographicCamera,this.depthDownsampleQuad.render(t)),this.effectShaderQuad.material.uniforms.sceneDiffuse.value=this.beautyRenderTarget.texture,this.effectShaderQuad.material.uniforms.sceneDepth.value=this.configuration.halfRes?this.depthDownsampleTarget.textures[0]:this.beautyRenderTarget.depthTexture,this.effectShaderQuad.material.uniforms.sceneNormal.value=this.configuration.halfRes?this.depthDownsampleTarget.textures[1]:null,this.effectShaderQuad.material.uniforms.projMat.value=this.camera.projectionMatrix,this.effectShaderQuad.material.uniforms.viewMat.value=this.camera.matrixWorldInverse,this.effectShaderQuad.material.uniforms.projViewMat.value=this.camera.projectionMatrix.clone().multiply(this.camera.matrixWorldInverse.clone()),this.effectShaderQuad.material.uniforms.projectionMatrixInv.value=this.camera.projectionMatrixInverse,this.effectShaderQuad.material.uniforms.viewMatrixInv.value=this.camera.matrixWorld,this.effectShaderQuad.material.uniforms.cameraPos.value=this.camera.getWorldPosition(new i.Vector3),this.effectShaderQuad.material.uniforms.biasAdjustment.value=new i.Vector2(this.configuration.biasOffset,this.configuration.biasMultiplier),this.effectShaderQuad.material.uniforms.resolution.value=this.configuration.halfRes?this._r.clone().multiplyScalar(.5).floor():this._r,this.effectShaderQuad.material.uniforms.time.value=performance.now()/1e3,this.effectShaderQuad.material.uniforms.samples.value=this.samples,this.effectShaderQuad.material.uniforms.bluenoise.value=this.bluenoise,this.effectShaderQuad.material.uniforms.radius.value=f,this.effectShaderQuad.material.uniforms.distanceFalloff.value=this.configuration.distanceFalloff,this.effectShaderQuad.material.uniforms.near.value=this.camera.near,this.effectShaderQuad.material.uniforms.far.value=this.camera.far,this.effectShaderQuad.material.uniforms.logDepth.value=t.capabilities.logarithmicDepthBuffer,this.effectShaderQuad.material.uniforms.ortho.value=this.camera.isOrthographicCamera,this.effectShaderQuad.material.uniforms.screenSpaceRadius.value=this.configuration.screenSpaceRadius,this.effectShaderQuad.material.uniforms.frame.value=this.frame,t.setRenderTarget(this.writeTargetInternal),this.effectShaderQuad.render(t);for(let d=0;d<this.configuration.denoiseIterations;d++)[this.writeTargetInternal,this.readTargetInternal]=[this.readTargetInternal,this.writeTargetInternal],this.poissonBlurQuad.material.uniforms.tDiffuse.value=this.readTargetInternal.texture,this.poissonBlurQuad.material.uniforms.sceneDepth.value=this.configuration.halfRes?this.depthDownsampleTarget.textures[0]:this.beautyRenderTarget.depthTexture,this.poissonBlurQuad.material.uniforms.projMat.value=this.camera.projectionMatrix,this.poissonBlurQuad.material.uniforms.viewMat.value=this.camera.matrixWorldInverse,this.poissonBlurQuad.material.uniforms.projectionMatrixInv.value=this.camera.projectionMatrixInverse,this.poissonBlurQuad.material.uniforms.viewMatrixInv.value=this.camera.matrixWorld,this.poissonBlurQuad.material.uniforms.cameraPos.value=this.camera.getWorldPosition(new i.Vector3),this.poissonBlurQuad.material.uniforms.resolution.value=this.configuration.halfRes?this._r.clone().multiplyScalar(.5).floor():this._r,this.poissonBlurQuad.material.uniforms.time.value=performance.now()/1e3,this.poissonBlurQuad.material.uniforms.blueNoise.value=this.bluenoise,this.poissonBlurQuad.material.uniforms.radius.value=this.configuration.denoiseRadius*(this.configuration.halfRes?.5:1),this.poissonBlurQuad.material.uniforms.worldRadius.value=f,this.poissonBlurQuad.material.uniforms.distanceFalloff.value=this.configuration.distanceFalloff,this.poissonBlurQuad.material.uniforms.index.value=d,this.poissonBlurQuad.material.uniforms.poissonDisk.value=this.samplesDenoise,this.poissonBlurQuad.material.uniforms.near.value=this.camera.near,this.poissonBlurQuad.material.uniforms.far.value=this.camera.far,this.poissonBlurQuad.material.uniforms.logDepth.value=t.capabilities.logarithmicDepthBuffer,this.poissonBlurQuad.material.uniforms.screenSpaceRadius.value=this.configuration.screenSpaceRadius,t.setRenderTarget(this.writeTargetInternal),this.poissonBlurQuad.render(t);t.setRenderTarget(this.accumulationRenderTarget);const h=t.autoClear;t.autoClear=!1,this.accumulationQuad.material.uniforms.tDiffuse.value=this.writeTargetInternal.texture,this.accumulationQuad.material.uniforms.frame.value=this.frame,this.accumulationQuad.render(t),t.autoClear=h}this.configuration.transparencyAware&&(this.effectCompositerQuad.material.uniforms.transparencyDWFalse.value=this.transparencyRenderTargetDWFalse.texture,this.effectCompositerQuad.material.uniforms.transparencyDWTrue.value=this.transparencyRenderTargetDWTrue.texture,this.effectCompositerQuad.material.uniforms.transparencyDWTrueDepth.value=this.transparencyRenderTargetDWTrue.depthTexture,this.effectCompositerQuad.material.uniforms.transparencyAware.value=!0),this.effectCompositerQuad.material.uniforms.sceneDiffuse.value=this.beautyRenderTarget.texture,this.effectCompositerQuad.material.uniforms.sceneDepth.value=this.beautyRenderTarget.depthTexture,this.effectCompositerQuad.material.uniforms.aoTones.value=this.configuration.aoTones,this.effectCompositerQuad.material.uniforms.near.value=this.camera.near,this.effectCompositerQuad.material.uniforms.far.value=this.camera.far,this.effectCompositerQuad.material.uniforms.projectionMatrixInv.value=this.camera.projectionMatrixInverse,this.effectCompositerQuad.material.uniforms.viewMatrixInv.value=this.camera.matrixWorld,this.effectCompositerQuad.material.uniforms.logDepth.value=t.capabilities.logarithmicDepthBuffer,this.effectCompositerQuad.material.uniforms.ortho.value=this.camera.isOrthographicCamera,this.effectCompositerQuad.material.uniforms.downsampledDepth.value=this.configuration.halfRes?this.depthDownsampleTarget.textures[0]:this.beautyRenderTarget.depthTexture,this.effectCompositerQuad.material.uniforms.resolution.value=this._r,this.effectCompositerQuad.material.uniforms.blueNoise.value=this.bluenoise,this.effectCompositerQuad.material.uniforms.intensity.value=this.configuration.intensity,this.effectCompositerQuad.material.uniforms.renderMode.value=this.configuration.renderMode,this.effectCompositerQuad.material.uniforms.screenSpaceRadius.value=this.configuration.screenSpaceRadius,this.effectCompositerQuad.material.uniforms.radius.value=f,this.effectCompositerQuad.material.uniforms.distanceFalloff.value=this.configuration.distanceFalloff,this.effectCompositerQuad.material.uniforms.gammaCorrection.value=this.configuration.gammaCorrection,this.effectCompositerQuad.material.uniforms.tDiffuse.value=this.accumulationRenderTarget.texture,this.effectCompositerQuad.material.uniforms.color.value=this._c.copy(this.configuration.color).convertSRGBToLinear(),this.effectCompositerQuad.material.uniforms.colorMultiply.value=this.configuration.colorMultiply,this.effectCompositerQuad.material.uniforms.cameraPos.value=this.camera.getWorldPosition(new i.Vector3),this.effectCompositerQuad.material.uniforms.fog.value=!!this.scene.fog,this.scene.fog&&(this.scene.fog.isFog?(this.effectCompositerQuad.material.uniforms.fogExp.value=!1,this.effectCompositerQuad.material.uniforms.fogNear.value=this.scene.fog.near,this.effectCompositerQuad.material.uniforms.fogFar.value=this.scene.fog.far):this.scene.fog.isFogExp2?(this.effectCompositerQuad.material.uniforms.fogExp.value=!0,this.effectCompositerQuad.material.uniforms.fogDensity.value=this.scene.fog.density):console.error(`Unsupported fog type ${this.scene.fog.constructor.name} in SSAOPass.`)),t.setRenderTarget(this.renderToScreen?null:r),this.effectCompositerQuad.render(t),this.debugMode&&(n.endQuery(l.TIME_ELAPSED_EXT),Xt(u,n,this)),t.xr.enabled=c}enableDebugMode(){this.debugMode=!0}disableDebugMode(){this.debugMode=!1}setDisplayMode(t){this.configuration.renderMode=["Combined","AO","No AO","Split","Split AO"].indexOf(t)}setQualityMode(t){t==="Performance"?(this.configuration.aoSamples=8,this.configuration.denoiseSamples=4,this.configuration.denoiseRadius=12):t==="Low"?(this.configuration.aoSamples=16,this.configuration.denoiseSamples=4,this.configuration.denoiseRadius=12):t==="Medium"?(this.configuration.aoSamples=16,this.configuration.denoiseSamples=8,this.configuration.denoiseRadius=12):t==="High"?(this.configuration.aoSamples=64,this.configuration.denoiseSamples=8,this.configuration.denoiseRadius=6):t==="Ultra"&&(this.configuration.aoSamples=64,this.configuration.denoiseSamples=16,this.configuration.denoiseRadius=6)}}const ws=Object.freeze(Object.defineProperty({__proto__:null,N8AOPass:Ts,N8AOPostPass:xs},Symbol.toStringTag,{value:"Module"}));exports.N8AO=ws;exports.index=ps;
|