@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
31 lines (28 loc) • 731 B
text/typescript
import {KernelSize} from 'postprocessing';
import {MenuNumericParamOptions} from '../../engine/params/utils/OptionsController';
export const KERNEL_SIZES: KernelSize[] = [
KernelSize.VERY_SMALL,
KernelSize.SMALL,
KernelSize.MEDIUM,
KernelSize.LARGE,
KernelSize.VERY_LARGE,
KernelSize.HUGE,
];
const KERNAL_NAME_BY_SIZE = {
[]: 'VERY_SMALL',
[]: 'SMALL',
[]: 'MEDIUM',
[]: 'LARGE',
[]: 'VERY_LARGE',
[]: 'HUGE',
};
export const KERNEL_SIZE_MENU_OPTIONS: MenuNumericParamOptions = {
menu: {
entries: KERNEL_SIZES.map((value) => {
return {
name: KERNAL_NAME_BY_SIZE[value],
value,
};
}),
},
};