TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class Tinman.Model.Texture.Normals

Short Name:
  • class Texture.Normals
Derived From:
Fields:

Interprets this model texture as a bump map and computes a normal map from it.

Black pixels lie in the XY plane (see figure), white pixels are at the given height. The height is specified relative to the size of this texture (i.e. maximum of width and height), e.g. a value of 1 would turn the cuboid below into a cube.

     .............
    .:          .:
Z+ . :         . :
| .  +--------.--+-- X+
|.  /        .  /
.............  /
: /         : /
:/          :/
+-----------+
           /
          Y+

Fields

The following table lists all fields of this config type.

Field Type Constraint Default
required source Model.Texture
# != null
 

The source image from which to create a normal map.

optional height number
# > 0
0.01

The relative bump height (see remarks).