blob: b6860de0a23ba62f14c83a7cfb9ebce32cbfaa9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import shader from './grayscale.glsl';
import type { ImageEffectorUiDefinition } from '../image-effector/ImageEffector.js';
import { defineImageCompositorFunction } from '@/lib/ImageCompositor.js';
import { i18n } from '@/i18n.js';
export const fn = defineImageCompositorFunction({
shader,
main: ({ gl, u, params }) => {
},
});
export const uiDefinition = {
name: i18n.ts._imageEffector._fxs.grayscale,
params: {
},
} satisfies ImageEffectorUiDefinition<typeof fn>;
|