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) → written directly to R8 texture. Supports raw pixel cache to skip PNG decompression on subsequent loads.
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. Uses raw pixel cache to skip PNG decompression on subsequent loads.
public void LoadAndPopulate(string mapDirectory)
Parameters
mapDirectorystring