karlramberg / ymir

Procedural world generator
0 stars 0 forks source link

opensimplex checker pattern #15

Closed karlramberg closed 5 years ago

karlramberg commented 5 years ago

map

karlramberg commented 5 years ago

Open Simplex noise won't be implemented into the final app for now. Will fix this later if I want to switch away from my implementation of Perlin noise.

-Karl

KdotJPG commented 4 years ago

https://github.com/karleramberg/ymir/blob/ed838aa76aeaee85adf44f501d84ee72d2d9fa92/opensimplex.go#L75 These should be a floor function. Int cast rounds towards zero, not down. It would suffice to check if int(x) is greater than x, and if so subtract one. Hope that helps!