Documentation

Heightmap Bits - Open Dev Kit Documentation

Open Dev Kit Documentation :: Game :: Sprite Data :: Heightmap Bits

Game.SpriteData.HeightmapBits
heightmap bit depth (8 or 16) baked into placed tilepatches at creation: 8-bit gives 1/255-of-a-tile-Z vertex resolution per cell (enough for most camera scales; minimum memory and bandwidth), 16-bit gives 1/65535 for zoomed-in or very tall sprites where subtle slopes need smoother shading. No auto-promote — pick once based on how close the camera can get to a sculpted tile. Anything other than 8 or 16 is clamped to 8

Type

Integer

Lua Usage

-- Get
local integer = spriteData.HeightmapBits

-- Set
spriteData.HeightmapBits = integer

If you think anything is missing, please feel free to: submit documentation feedback on this page