mirror of
https://github.com/LucasDower/ObjToSchematic.git
synced 2024-11-27 02:19:58 +08:00
9de906f794
* 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
39 lines
1.3 KiB
TypeScript
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,
|
|
},
|
|
};
|