Documentation ¶
Overview ¶
Package genmap2derosion is based on "Simple Hydrology" See: https://nickmcd.me/2020/04/15/procedural-hydrology/
Index ¶
Constants ¶
View Source
const DefaultSeed = 12356
Variables ¶
View Source
var DefaultParams = &Params{ StoreGIFFrames: true, StorePNGCycles: true, Seed: DefaultSeed, Size: vectors.IVec2{ X: worldsize, Y: worldsize, }, UseWindErosion: false, }
Functions ¶
func MapF ¶
func MapF(f genheightmap.Modify, hm []float64)
Types ¶
type Climate ¶
type Climate struct { // Curent climate state. TempMap []float64 // local temperature HumidityMap []float64 // local humidity CloudMap []bool // cloud cover (true = cloudy) RainMap []bool // rain is falling (true = raining) WindMap []float64 // local wind speeds WindDirection [2]float64 // global wind vector (from 0-1) // Average climate maps (collected over the course of the simulation) AvgRainMap []float64 // average raininess over time AvgWindMap []float64 // average wind speed over time AvgCloudMap []float64 // average cloud cover over time AvgTempMap []float64 // average temperature over time AvgHumidityMap []float64 // average humidity over time // contains filtered or unexported fields }
func NewClimate ¶
type Drop ¶
type Drop struct {
// contains filtered or unexported fields
}
type Wind ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.