Allow arbitrary height map image dimensions#3577
Conversation
92048da to
37f6420
Compare
my original implementation limited it to the 40 levels for that exact reason - the game doesn't let you build any higher or even lower the land there. that should actually be changed IMO and the land should be allowed to be lowered at any height > 0, and similarly raised when its any height < maxHeight |
Adjusted with commit 07cca78 |
LeftofZen
left a comment
There was a problem hiding this comment.
needs changelog but otherwise looks good to me




Implements basic bilinear interpolation, when its the exact size no interpolation will happen, also images that are smaller will work just fine too now, it will always remap the coordinates. Also fixes a bug where gray scale pngs would not load, now it tells the png loader what we expect and it takes care of it for us.
Here is an example, left is 1424x1424 and right is 130x130, the difference is quite minor but that there is a difference is to be expected.