Commit 4ba2492
committed
demo: carry the raster's walk forward across a Vertical Hold change too
The browser demo is a port of the plugin's own GLSL, so it had the same defect
the plugin just lost: the roll was `VerticalHold * Time` in the shader, which
moves by `Time * delta` the instant the control changes — and in a page `Time` is
how long the tab has been open. Because the roll is wrapped by `fract`, dragging
the slider did not start a roll, it dropped the picture at an arbitrary vertical
offset.
The walk is now accumulated on the page side and handed to the shader as
`VerticalRoll`, exactly as OldCathode.cpp hands it to the plugin's copy. The
`VerticalHold` uniform still goes over as well, because the rolling bar's width
is an amplitude and wants the raw value.
**The demo is where this matters most.** A visitor who opens the page is
guaranteed to drag these sliders — that is what the page is for — so the one
place the bug was certain to be seen was the one place it was still in.
Checked in a browser: the shader compiles, the picture renders, and taking
Vertical Hold from 0 to 0.35 a minute into the page leaves the picture where it
was and starts it crawling, rather than jumping it somewhere unrelated.1 parent cb37170 commit 4ba2492
1 file changed
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
66 | 92 | | |
67 | 93 | | |
68 | 94 | | |
| |||
170 | 196 | | |
171 | 197 | | |
172 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
173 | 206 | | |
174 | 207 | | |
175 | 208 | | |
| |||
365 | 398 | | |
366 | 399 | | |
367 | 400 | | |
368 | | - | |
| 401 | + | |
369 | 402 | | |
370 | 403 | | |
371 | 404 | | |
| |||
883 | 916 | | |
884 | 917 | | |
885 | 918 | | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
886 | 922 | | |
887 | 923 | | |
888 | 924 | | |
| |||
0 commit comments