subimage: ((source: texture, x?: number, y?: number) => texture)

Copy from a given source texture to part of this output texture; via a GL api.

See

Returns

The output texture, this; the source texture copied to part of it.

This

Uses any this value's texture as the output to copy into.

Type declaration

    • (source, x?, y?): texture
    • Parameters

      • source: texture

        A texture to copy to part of the output texture.

      • Optionalx: number

        Offset along the output texture's x-axis.

      • Optionaly: number

        Offset along the output texture's y-axis.

      Returns texture