From e6473b7d7e7ce5d782fcb07c00fa95fffbe7ce07 Mon Sep 17 00:00:00 2001 From: "Raoul v. R." Date: Thu, 16 Jan 2025 23:18:11 +0100 Subject: [PATCH] Update scanlines.ts --- manual/assets/js/src/demos/scanlines.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manual/assets/js/src/demos/scanlines.ts b/manual/assets/js/src/demos/scanlines.ts index 0c2df3de4..6e9603307 100644 --- a/manual/assets/js/src/demos/scanlines.ts +++ b/manual/assets/js/src/demos/scanlines.ts @@ -80,7 +80,7 @@ window.addEventListener("load", () => void load().then((assets) => { // Post Processing - const effect = new ScanlineEffect(); + const effect = new ScanlineEffect({ density: 2.0 }); effect.blendMode.opacity = 0.25; const pipeline = new RenderPipeline(renderer); @@ -97,8 +97,9 @@ window.addEventListener("load", () => void load().then((assets) => { const fpsGraph = Utils.createFPSGraph(pane); const folder = pane.addFolder({ title: "Settings" }); - folder.addBinding(effect, "density", { min: 0, max: 2, step: 1e-3 }); - folder.addBinding(effect, "scrollSpeed", { min: -0.02, max: 0.02, step: 1e-3 }); + folder.addBinding(effect, "offset", { min: 0, max: 1, step: 1e-3 }); + folder.addBinding(effect, "density", { min: 0, max: 4, step: 1e-3 }); + folder.addBinding(effect, "scrollSpeed", { min: -0.1, max: 0.1, step: 1e-3 }); Utils.addBlendModeBindings(folder, effect.blendMode);