CubemapAssetData: {
    anisotropy: number;
    magFilter: number;
    minFilter: number;
    rgbm: boolean;
    textures: number[];
}

Represents the data for a Cubemap asset.

Type declaration

  • anisotropy: number

    Integer value specifying the level of anisotropic to apply to the texture ranging from 1 (no anisotropic filtering) to the pc.GraphicsDevice property maxAnisotropy.

  • magFilter: number

    The magnification filter to be applied to the texture. Can be: pc.FILTER_NEAREST, pc.FILTER_LINEAR, pc.FILTER_NEAREST_MIPMAP_NEAREST, pc.FILTER_LINEAR_MIPMAP_NEAREST, pc.FILTER_NEAREST_MIPMAP_LINEAR, pc.FILTER_LINEAR_MIPMAP_LINEAR.

  • minFilter: number

    The minification filter to be applied to the texture. Can be: pc.FILTER_NEAREST, pc.FILTER_LINEAR, pc.FILTER_NEAREST_MIPMAP_NEAREST, pc.FILTER_LINEAR_MIPMAP_NEAREST, pc.FILTER_NEAREST_MIPMAP_LINEAR, pc.FILTER_LINEAR_MIPMAP_LINEAR.

  • rgbm: boolean

    Whether the cubemap is RGBM. The RGBM format is a format to store high dynamic range (HDR) textures by using the alpha channel to store a multiplier for the rgb channels.

  • textures: number[]

    An array of 6 texture asset ids that represent the faces of the cubemap.