summaryrefslogtreecommitdiff
path: root/packages/frontend/src/utility/image-effector/fxs/threshold.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/utility/image-effector/fxs/threshold.ts')
-rw-r--r--packages/frontend/src/utility/image-effector/fxs/threshold.ts46
1 files changed, 0 insertions, 46 deletions
diff --git a/packages/frontend/src/utility/image-effector/fxs/threshold.ts b/packages/frontend/src/utility/image-effector/fxs/threshold.ts
deleted file mode 100644
index d0bb8305ae..0000000000
--- a/packages/frontend/src/utility/image-effector/fxs/threshold.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * SPDX-FileCopyrightText: syuilo and misskey-project
- * SPDX-License-Identifier: AGPL-3.0-only
- */
-
-import { defineImageEffectorFx } from '../ImageEffector.js';
-import shader from './threshold.glsl';
-import { i18n } from '@/i18n.js';
-
-export const FX_threshold = defineImageEffectorFx({
- id: 'threshold',
- name: i18n.ts._imageEffector._fxs.threshold,
- shader,
- uniforms: ['r', 'g', 'b'] as const,
- params: {
- r: {
- label: i18n.ts._imageEffector._fxProps.redComponent,
- type: 'number',
- default: 0.5,
- min: 0.0,
- max: 1.0,
- step: 0.01,
- },
- g: {
- label: i18n.ts._imageEffector._fxProps.greenComponent,
- type: 'number',
- default: 0.5,
- min: 0.0,
- max: 1.0,
- step: 0.01,
- },
- b: {
- label: i18n.ts._imageEffector._fxProps.blueComponent,
- type: 'number',
- default: 0.5,
- min: 0.0,
- max: 1.0,
- step: 0.01,
- },
- },
- main: ({ gl, u, params }) => {
- gl.uniform1f(u.r, params.r);
- gl.uniform1f(u.g, params.g);
- gl.uniform1f(u.b, params.b);
- },
-});