forked from mirror/ObjToSchematic
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import { THeadlessConfig } from './headless';
|
|
import { TextureFiltering } from '../src/texture';
|
|
import { ColourSpace } from '../src/util';
|
|
|
|
export const headlessConfig: THeadlessConfig = {
|
|
import: {
|
|
filepath: '/Users/lucasdower/ObjToSchematic/res/samples/skull.obj', // Must be an absolute path
|
|
},
|
|
voxelise: {
|
|
voxeliser: 'bvh-ray',
|
|
desiredHeight: 80,
|
|
useMultisampleColouring: false,
|
|
textureFiltering: TextureFiltering.Linear,
|
|
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
|
|
blockAssigner: 'ordered-dithering',
|
|
colourSpace: ColourSpace.RGB,
|
|
fallable: 'replace-falling',
|
|
},
|
|
export: {
|
|
filepath: '/Users/lucasdower/Documents/out.obj', // Must be an absolute path to the file (can be anywhere)
|
|
exporter: 'obj', // 'schematic' / 'litematic',
|
|
},
|
|
debug: {
|
|
logging: true,
|
|
},
|
|
};
|