Environment texture properties

interface EnvironmentProperty {
    enable?: boolean;
    filePath?: string;
    gammaSpace?: boolean;
    intensity?: number;
    size?: number;
    textureMatrix?: Matrix;
    type: "hdr" | "env";
}

Hierarchy (view full)

Properties

enable?: boolean

Whether to enable the light

true
filePath?: string

Local file path or URL of the texture map

gammaSpace?: boolean

Define if the texture contains data in gamma space (most of the png/jpg aside bump). HDR texture are usually stored in linear space.

true
intensity?: number

Strength of the light

1
size?: number

The cubemap desired size (the more it increases the longer the generation will be). Only for .hdr file.

128
textureMatrix?: Matrix

Texture matrix includes the requested offsetting, tiling and rotation components

Matrix.Identity()
type: "hdr" | "env"

File extension, either '.hdr' or '.env'