import{FXAAShader}from"three/examples/jsm/shaders/FXAAShader";import{ShaderPass}from"three/examples/jsm/postprocessing/ShaderPass";import{definePlugin}from"../../core/extension";export default definePlugin("fxaa-pass",{setup(a,b){const c=b.renderer,d=b.container,e=new ShaderPass(FXAAShader);if("webgpu"===c.type)return{fxaaPass:e};const f=window.devicePixelRatio,g=d.offsetWidth,h=d.offsetHeight;return e.material.uniforms.resolution.value.x=1/(g*f),e.material.uniforms.resolution.value.y=1/(h*f),c.composer.addPass(e),{fxaaPass:e}},destroyed(){this.fxaaPass.dispose()}});