babylon.quarks - v1.0.0
    Preparing search index...

    Interface QuarksTextureJSON

    A texture and its sampler state. Every field after image is written only when it differs from Babylon's default for a Texture. wrap uses the three.js codes the format inherited: 1000 repeat, 1001 clamp, 1002 mirror.

    interface QuarksTextureJSON {
        colorSpace?: string;
        image?: string;
        invertY?: boolean;
        noMipmap?: boolean;
        offset?: [number, number];
        repeat?: [number, number];
        rotation?: number;
        samplingMode?: number;
        uuid: string;
        wrap?: [number, number];
    }
    Index
    colorSpace?: string

    The colour space the image's colours are stored in, as three.js names them. 'srgb': a colour texture, loaded into an sRGB GPU buffer (useSRGBBuffer) that decodes and filters it in linear space, as Unity's sRGB (Color Texture) import setting does; where the GPU cannot (WebGL 1 with mipmaps) Babylon loads it as before and the shaders convert it. Anything else, or absent (the default): read as stored, which the shaders take as gamma space for a colour.

    image?: string

    The QuarksImageJSON uuid; absent when the texture had no url a file can point at.

    invertY?: boolean

    Default true.

    noMipmap?: boolean

    Default false.

    offset?: [number, number]

    [uOffset, vOffset]. Default [0, 0].

    repeat?: [number, number]

    [uScale, vScale]. Default [1, 1].

    rotation?: number

    wAng, in radians. Default 0.

    samplingMode?: number

    A Babylon sampling mode constant. Default trilinear.

    uuid: string

    Unique within the file; other entries refer to it by this.

    wrap?: [number, number]

    [u, v]. Default repeat on both.