LucasDower_ObjToSchematic/tools/headless-config.ts
Lucas Dower e4e95b0a1f
* Added 'rotation' option when loading a model
* Fixed `voxelise` action not enabling after `import` action succeeds
2023-01-21 00:25:02 +00:00

40 lines
1.3 KiB
TypeScript

import { ColourSpace } from '../src/util';
import { Vector3 } from '../src/vector';
import { THeadlessConfig } from './headless';
export const headlessConfig: THeadlessConfig = {
import: {
filepath: '/Users/lucasdower/ObjToSchematic/res/samples/skull.obj', // Must be an absolute path
rotation: new Vector3(0, 0, 0),
},
voxelise: {
constraintAxis: 'y',
voxeliser: 'bvh-ray',
size: 80,
useMultisampleColouring: false,
voxelOverlapRule: 'average',
enableAmbientOcclusion: false, // Only want true if exporting to .obj
},
assign: {
textureAtlas: 'vanilla', // Must be an atlas name that exists in /resources/atlases
blockPalette: 'all-snapshot', // Must be a palette name that exists in /resources/palettes
dithering: 'ordered',
colourSpace: ColourSpace.RGB,
fallable: 'replace-falling',
resolution: 32,
calculateLighting: false,
lightThreshold: 0,
contextualAveraging: true,
errorWeight: 0.0,
},
export: {
filepath: '/Users/lucasdower/Documents/out.obj', // Must be an absolute path to the file (can be anywhere)
exporter: 'obj', // 'schematic' / 'litematic',
},
debug: {
showLogs: true,
showWarnings: true,
showTimings: true,
},
};