mirror of
https://github.com/exogen/t2-model-skinner.git
synced 2026-02-19 22:53:42 +00:00
18 lines
458 B
TypeScript
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);
|