t2-model-skinner/src/imageProcessing.worker.ts
2022-12-02 22:26:17 -08:00

18 lines
458 B
TypeScript

import * as Comlink from "comlink";
import {
combineColorAndAlphaImageUrls,
removeAlphaFromArrayBuffer,
convertGrayscaleImageUrlToMetallicRoughness,
convertArrayBufferAlphaToGrayscale,
} from "./imageUtils";
const exports = {
combineColorAndAlphaImageUrls,
removeAlphaFromArrayBuffer,
convertArrayBufferAlphaToGrayscale,
convertGrayscaleImageUrlToMetallicRoughness,
};
export type ImageFunctions = typeof exports;
Comlink.expose(exports);