Class HeightmapImageLoader
Loads heightmap.png (or heightmap.bmp) and populates the heightmap texture. Uses ImageParser for unified BMP/PNG support with PNG preferred. Height values: 0-255 (8-bit) → 0.0-1.0 (normalized float)
public class HeightmapImageLoader
- Inheritance
-
objectHeightmapImageLoader
- Derived
Methods
Initialize(MapTextureManager, bool)
public void Initialize(MapTextureManager textures, bool enableLogging = true)
Parameters
texturesMapTextureManagerenableLoggingbool
LoadAndPopulate(string)
Load heightmap image and populate heightmap texture. Tries heightmap.png first, falls back to heightmap.bmp.
public void LoadAndPopulate(string mapDirectory)
Parameters
mapDirectorystring