no-wrap option; pivoted exponential zoom

This commit is contained in:
Ilia Denisov
2026-03-07 11:35:18 +02:00
committed by GitHub
parent 1de621c743
commit 477e656008
22 changed files with 605 additions and 81 deletions
+4
View File
@@ -54,6 +54,10 @@ func (e *editor) GetParams() world.RenderParams {
func (e *editor) UpdateParams(fn func(p *world.RenderParams)) {
e.mu.Lock()
fn(e.wp)
// IMPORTANT: clamp camera if no-wrap
e.world.ClampRenderParamsNoWrap(e.wp)
p := e.wp // snapshot
e.mu.Unlock()