Files
YataiDONNijiiro/Scripts/background/bg_data/bg_anim/bg_0.lua
T
TaikoZhongandClaude Fable 5.1 4d3127d9ea Replay the cabinet's add-blended light effects as additive
The exported clips and backdrop movies were drawn source-over everywhere, but the
cabinet places a number of glow layers with its add blend mode: the lantern glows
of the lower backdrops (bg_nomal_a_01..05), the crown's radial burst, the score
rank plate's effect copy, and the full-combo / donderful letter glows.  Drawn
source-over, those textures show up as dark or grey patches.

- movie_export / clip_export record the placement's blend mode (`blend = 8` on a
  backdrop leaf, an 8th row value on a clip leaf; the root placement's mode is
  folded into its group), and bg_anim / clip_player / ending draw such leaves
  with blend = "additive".  Data re-exported; only the blend field changed.
- result_crown: the burst copies draw additively; the crown_loop shine sweep is a
  plain white polygon on the cabinet, so gleam frames 0..2 are white now instead
  of the atlas colour they were exported with.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 01:49:19 +08:00

17 lines
935 B
Lua

-- GENERATED by scratchpad/lyric/movie_export.py from enso/background/bg_nomal_a_01.nulm -- do not hand-edit.
-- 1920x540 stage @60fps (screen y 540). Per leaf: shape, period, channels tx/ty/sx/sy/rot/a
-- (number = constant, table = per frame of the loop; a = 0 means not placed), optional on/on_period mask.
-- shapes[c] = {w, h, ox, oy}: png size and the shape origin inside it.
return {
shapes = {
[1] = {1920, 540, 640, 180},
[3] = {1920, 98, 960, 49},
[5] = {1920, 540, 640, 180},
},
normal = {
{ shape = 1, period = 1, tx = 640, ty = 180, sx = 1, sy = 1, rot = 0, a = 1 }, -- #1@0
{ shape = 3, period = 1, tx = 960, ty = 540, sx = 1, sy = 1, rot = 0, a = 1 }, -- #3@1
{ shape = 5, period = 20, blend = 8, tx = 640, ty = 180, sx = 1, sy = 1, rot = 0, a = {0.699,0.688,0.676,0.668,0.656,0.645,0.633,0.625,0.613,0.602,0.613,0.621,0.633,0.641,0.652,0.66,0.668,0.68,0.688,0.699} }, -- #7@2/#5@0
},
}