interface TextureAlphaData {
    width: number;
    height: number;
    minX: number;
    minY: number;
    maxX: number;
    maxY: number;
    data: Uint8Array;
}

Properties

width: number

The width of the (downscaled) texture.

height: number

The height of the (downscaled) texture.

minX: number

The minimum x-coordinate with alpha > 0.

minY: number

The minimum y-coordinate with alpha > 0.

maxX: number

The maximum x-coordinate with alpha > 0 plus 1.

maxY: number

The maximum y-coordinate with alpha > 0 plus 1.

data: Uint8Array

The array containing the texture alpha values (0-255) with the dimensions (maxX-minX)×(maxY-minY).