Pixel.Material

Description

Name

class Tinman.Pixel.Material

Derived from

Pixel

Creates a pixel layer that renders the given materials of the material layer (see Heightmap.Layer.Material).

Fields / Optional

red

Type

number

Constraint

# >= 0 && # <= 255

Default

0

ID of material which weight to encode in the red channel.


green

Type

number

Constraint

# >= 0 && # <= 255

Default

1

ID of material which weight to encode in the green channel.


blue

Type

number

Constraint

# >= 0 && # <= 255

Default

2

ID of material which weight to encode in the blue channel.


alpha

Type

number

Constraint

# >= 0 && # <= 255

Default

3

ID of material which inverse weight to encode in the alpha channel.