From b5d9e106fb9648670d0224033b4a5b38189d0490 Mon Sep 17 00:00:00 2001 From: Rezmason Date: Mon, 15 Nov 2021 07:41:18 -0800 Subject: [PATCH] prettier has some opinions about bloomPass. --- js/webgpu/bloomPass.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/webgpu/bloomPass.js b/js/webgpu/bloomPass.js index 2822ab8..18ce604 100644 --- a/js/webgpu/bloomPass.js +++ b/js/webgpu/bloomPass.js @@ -68,7 +68,6 @@ export default ({ config, device }) => { })(); const build = (screenSize, inputs) => { - // Since the bloom is blurry, we downscale everything scaledScreenSize = screenSize.map((x) => Math.floor(x * bloomSize)); @@ -108,11 +107,7 @@ export default ({ config, device }) => { computePass.setPipeline(blurPipeline); for (let i = 0; i < pyramidHeight; i++) { - const dispatchSize = [ - Math.ceil(Math.floor(scaledScreenSize[0] * 2 ** -i) / 32), - Math.floor(Math.floor(scaledScreenSize[1] * 2 ** -i)), - 1 - ]; + const dispatchSize = [Math.ceil(Math.floor(scaledScreenSize[0] * 2 ** -i) / 32), Math.floor(Math.floor(scaledScreenSize[1] * 2 ** -i)), 1]; computePass.setBindGroup(0, hBlurBindGroups[i]); computePass.dispatch(...dispatchSize); computePass.setBindGroup(0, vBlurBindGroups[i]);