Skip to content

lsystem_coast: the ocean cascades' weights are state keys - #1125

Merged
transfix merged 1 commit into
masterfrom
feat/ocean-cascade-weights
Nov 10, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/ocean-cascade-weights

Conversation

@transfix

Copy link
Copy Markdown
Owner

Follow-up to #1116 (O2): the per-cascade weights are now settings, beside the other coast.water.* knobs.

  • Keys: coast.water.weight_long, coast.water.weight_mid and coast.water.weight_short set the amplitude of the 251 m, 83 m and 29 m cascades.
  • Physics sees them too: each weight is baked into that cascade's h0 (cvc::ocean::cascade::amplitude), so the physics band will read the same sea (the roadmap's R3). A change rebuilds h0, like any spectrum knob.
  • Defaults: all three default to 1, the one physical spectrum. The default sea is unchanged: frame 40 of a --capture orbit render is byte-identical to the O2 build's.
  • UI: the Ocean panel gains a slider for each ("long waves", "mid waves", "ripples", 0 to 2).

The old 0.55 and 0.32 are still reachable through these keys. On the band-limited cascades they make the sea look glassy, which is why they aren't the default.

Built and checked locally (Windows Release, GL build). git clang-format 18.1.8 is clean on the changed lines.

coast.water.weight_long, weight_mid and weight_short (the 251, 83 and 29 m cascades) set each
band's amplitude, baked into h0 so the physics band will see the same sea; a change rebuilds h0
like any spectrum knob. All default to 1, the one physical spectrum, so the default sea is
unchanged (an orbit capture's frame is byte-identical to before). The Ocean panel gains a slider
for each (0 to 2).
@transfix
transfix enabled auto-merge (squash) November 10, 2026 05:32
@transfix
transfix merged commit c537866 into master Nov 10, 2026
14 of 30 checks passed
@transfix
transfix deleted the feat/ocean-cascade-weights branch November 10, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant