Exploring ways to preserve the vanilla JS browser demo without compromising on the bundle. Experimenting with embedding images in the bundle as data URIs

This commit is contained in:
Rezmason
2025-05-06 12:59:02 -07:00
parent 6663c92f99
commit eea341f50c
27 changed files with 372 additions and 137 deletions

View File

@@ -6,8 +6,6 @@ import {
makeBindGroup,
makePass,
} from "./utils.js";
import bloomBlurShader from "../../shaders/wgsl/bloomBlur.wgsl";
import bloomCombineShader from "../../shaders/wgsl/bloomCombine.wgsl";
// const makePyramid = makeComputeTarget;
@@ -56,8 +54,8 @@ export default ({ config, device }) => {
}
const assets = [
loadShader(device, bloomBlurShader),
loadShader(device, bloomCombineShader),
loadShader(device, "shaders/wgsl/bloomBlur.wgsl"),
loadShader(device, "shaders/wgsl/bloomCombine.wgsl"),
];
const linearSampler = device.createSampler({