Removing some unused code from bloom

This commit is contained in:
Rezmason
2022-11-01 08:07:34 -07:00
parent 316d740322
commit 4cc4d9191e
2 changed files with 0 additions and 8 deletions

View File

@@ -4,10 +4,6 @@ import { loadText, makePassFBO, makePass } from "./utils.js";
// The blur approximation is the sum of a pyramid of downscaled, blurred textures.
const pyramidHeight = 5;
const levelStrengths = Array(pyramidHeight)
.fill()
.map((_, index) => Math.pow(index / (pyramidHeight * 2) + 0.5, 1 / 3).toPrecision(5))
.reverse();
// A pyramid is just an array of FBOs, where each FBO is half the width
// and half the height of the FBO below it.

View File

@@ -6,10 +6,6 @@ struct Config {
@group(0) @binding(0) var<uniform> config : Config;
@group(0) @binding(1) var linearSampler : sampler;
// Currently mipmap textures aren't working as expected in Firefox Nightly
// @group(0) @binding(2) var tex : texture_2d<f32>;
// @group(0) @binding(3) var outputTex : texture_storage_2d<rgba8unorm, write>;
@group(0) @binding(2) var tex1 : texture_2d<f32>;
@group(0) @binding(3) var tex2 : texture_2d<f32>;
@group(0) @binding(4) var tex3 : texture_2d<f32>;