func (l *Loader) ChangeRadius(new int) {
	l.mu.Lock()
	l.r = new
	l.evictUnused()
	l.populateLoadQueue()
	l.mu.Unlock()
}
ChangeRadius changes the maximum chunk radius of the Loader.
package world
import (
	"github.com/go-gl/mathgl/mgl64"
	"math"
	"sync"
)
type Loader struct {
	r      int
	w      *World
	viewer Viewer
	mu        sync.RWMutex
	pos       ChunkPos
	loadQueue []ChunkPos
	loaded    map[ChunkPos]struct{}
	closed bool
}
func NewLoader(chunkRadius int, world *World, v Viewer) *Loader {
	l := &Loader{r: chunkRadius, loaded: make(map[ChunkPos]struct{}), viewer: v}
	l.world(world)
	return l
}
func (l *Loader) World() *World {
	l.mu.RLock()
	w := l.w
	l.mu.RUnlock()
	return w
}
func (l *Loader) ChangeWorld(new *World) {
	l.mu.Lock()
	l.reset()
	l.world(new)
	l.mu.Unlock()
}