Commit d095760
committed
refactor(shader-transitions): extract DEFAULT_DURATION and DEFAULT_EASE constants
The three fallback sites in hyper-shader.ts (metadata write, browser/render
mode, and engine mode) had drifted apart: the metadata path used 1s/'none'
while the actual rendering used 0.7s/'power2.inOut'. This meant a transition
without an explicit duration/ease would render at 0.7s but tell the engine
it was 1s, throwing off the producer's compositing window planning.
Extract DEFAULT_DURATION (0.7) and DEFAULT_EASE ('power2.inOut') as
module-level constants and use them at all three sites so a missing
duration/ease produces identical behavior in preview, the engine's
deterministic seek path, and the metadata the producer reads.
The explicit `ease: 'none'` on the timeline-length anchor tweens elsewhere
in the file is intentional (those are linear interpolators driving the
shader's progress uniform) and is left unchanged.1 parent ce815c2 commit d095760
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
| |||
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
133 | | - | |
| 141 | + | |
134 | 142 | | |
135 | | - | |
| 143 | + | |
136 | 144 | | |
137 | 145 | | |
138 | 146 | | |
| |||
238 | 246 | | |
239 | 247 | | |
240 | 248 | | |
241 | | - | |
242 | | - | |
| 249 | + | |
| 250 | + | |
243 | 251 | | |
244 | 252 | | |
245 | 253 | | |
| |||
361 | 369 | | |
362 | 370 | | |
363 | 371 | | |
364 | | - | |
| 372 | + | |
365 | 373 | | |
366 | 374 | | |
367 | 375 | | |
| |||
0 commit comments