ObjToSchematic/tools/headless-config.ts

35 lines
1.2 KiB
TypeScript
Raw Normal View History

import { TextureFiltering } from '../src/texture';
import { ColourSpace } from '../src/util';
2022-09-12 08:07:42 +08:00
import { THeadlessConfig } from './headless';
export const headlessConfig: THeadlessConfig = {
2022-03-23 05:15:09 +08:00
import: {
filepath: '/Users/lucasdower/ObjToSchematic/res/samples/skull.obj', // Must be an absolute path
2022-03-23 05:15:09 +08:00
},
voxelise: {
voxeliser: 'bvh-ray',
desiredHeight: 80,
useMultisampleColouring: false,
textureFiltering: TextureFiltering.Linear,
voxelOverlapRule: 'average',
enableAmbientOcclusion: false, // Only want true if exporting to .obj
2022-03-23 05:15:09 +08:00
},
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
blockAssigner: 'ordered-dithering',
colourSpace: ColourSpace.RGB,
fallable: 'replace-falling',
2022-10-02 10:03:07 +08:00
resolution: 32,
2022-03-23 05:15:09 +08:00
},
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,
2022-03-23 05:15:09 +08:00
},
};