t2-model-skinner/src/imageProcessing.worker.ts

19 lines
458 B
TypeScript
Raw Normal View History

2022-12-02 22:26:17 -08:00
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);