Namespace: HeightMap

HeightMap

HeightMap contains some utilities for height maps.

Author:
  • derschmale <http://www.derschmale.com>

Methods


<static> from8BitTexture(texture [, generateMipmaps] [, target])

Smooths out an 8-bit per channel texture to serve as a height map. Otherwise, the limited 8 bit precision would result in a stair-case effect.

Parameters:
Name Type Argument Description
texture

The source 8-bit per channel texture.

generateMipmaps <optional>

Whether or not to generate a mip chain.

target <optional>

An optional target texture.