ObjToSchematic/tools/headless-config.ts
Lucas Dower 9de906f794
Updates to texture sampling
* Fixed vertical axis incorrectly sampling texture
* Added per-material texture interpolation setting
* Added per-material texture extension setting
* Removed texture filtering option from voxelise step, now per-material
2022-11-28 21:05:59 +00:00

39 lines
1.3 KiB
TypeScript

import { TextureFiltering } from '../src/texture';
import { ColourSpace } from '../src/util';
import { THeadlessConfig } from './headless';
export const headlessConfig: THeadlessConfig = {
import: {
filepath: '/Users/lucasdower/ObjToSchematic/res/samples/skull.obj', // Must be an absolute path
},
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,
},
};