no-wrap option; pivoted exponential zoom
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user