@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
19 lines (18 loc) • 689 B
JavaScript
;
import { ASSETS_ROOT } from "../../../core/loader/AssetsUtils";
import { VOXLoaderHandler } from "../../../core/loader/geometry/VOX";
import { sanitizeUrl } from "../../../core/UrlHelper";
import { SopTypeFile } from "../../poly/registers/nodes/types/Sop";
import { BaseFileSopOperation } from "./utils/File/_BaseFileOperation";
export class FileVOXSopOperation extends BaseFileSopOperation {
static type() {
return SopTypeFile.FILE_VOX;
}
_createGeoLoaderHandler(params) {
return new VOXLoaderHandler(params.url, this._node);
}
}
FileVOXSopOperation.DEFAULT_PARAMS = {
url: sanitizeUrl(`${ASSETS_ROOT}/models/vox/monu10.vox`),
matrixAutoUpdate: false
};