mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-21 15:29:30 -07:00
Removing some unused code from bloom
This commit is contained in:
@@ -4,10 +4,6 @@ import { loadText, makePassFBO, makePass } from "./utils.js";
|
|||||||
// The blur approximation is the sum of a pyramid of downscaled, blurred textures.
|
// The blur approximation is the sum of a pyramid of downscaled, blurred textures.
|
||||||
|
|
||||||
const pyramidHeight = 5;
|
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
|
// A pyramid is just an array of FBOs, where each FBO is half the width
|
||||||
// and half the height of the FBO below it.
|
// and half the height of the FBO below it.
|
||||||
|
|||||||
@@ -6,10 +6,6 @@ struct Config {
|
|||||||
@group(0) @binding(0) var<uniform> config : Config;
|
@group(0) @binding(0) var<uniform> config : Config;
|
||||||
@group(0) @binding(1) var linearSampler : sampler;
|
@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(2) var tex1 : texture_2d<f32>;
|
||||||
@group(0) @binding(3) var tex2 : texture_2d<f32>;
|
@group(0) @binding(3) var tex2 : texture_2d<f32>;
|
||||||
@group(0) @binding(4) var tex3 : texture_2d<f32>;
|
@group(0) @binding(4) var tex3 : texture_2d<f32>;
|
||||||
|
|||||||
Reference in New Issue
Block a user