"use strict";exports.__esModule=!0,exports.default=void 0;var _FXAAShader=require("three/examples/jsm/shaders/FXAAShader"),_ShaderPass=require("three/examples/jsm/postprocessing/ShaderPass"),_extension=require("../../core/extension"),_default=exports.default=(0,_extension.definePlugin)("fxaa-pass",{setup(a,b){const c=b.renderer,d=b.container,e=new _ShaderPass.ShaderPass(_FXAAShader.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()}});