Files
FWS-Kitty/kitty/shaders/custom/sample.slang
T
BlackAngelTV 7e7d249099 chore: import official kitty sources from upstream
Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty,
vendored at upstream commit 91fb38a without its git history.
2026-11-04 11:20:47 +01:00

24 lines
705 B
Plaintext

#language slang 2026
// Copyright (C) 2026 Kovid Goyal <kovid at kovidgoyal.net>
// Distributed under terms of the GPLv3 license.
import kitty_custom_shader_types;
static const float FACTOR = 2;
// START_FUNCTION_SIGNATURE
public float4
fragment_main(
// The color from the previous custom shader in this group or from the
// backbuffer if this is the first shader in the group
float4 color,
// See types.slang for details on the data in this structure
KittyTextures t,
// See types.slang for details on the data in this structure
KittyCustomShaderData d) {
// END_FUNCTION_SIGNATURE
return float4(color.r, min(max(0.1, color.g) * FACTOR, 1), color.b, color.a);
}