Skip to content

Commit

Permalink
Update scanlines.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Jan 16, 2025
1 parent aa11f16 commit e6473b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manual/assets/js/src/demos/scanlines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit e6473b7

Please # to comment.