Desde Claude Code:
"Crea un pixel shader para Windows Terminal que detecte texto de luminosidad media y lo ilumine"
Y el ajuste fino: "baja/subela intensidad del shader al X%".
theme dark + foreground verde #16C60C + shader 20%
boost-dim.hlsl
Texture2D shaderTexture;
SamplerState samplerState;
cbuffer PixelShaderSettings {
float Time;
float Scale;
float2 Resolution;
float4 Background;
};
float4 main(float4 pos : SV_POSITION, float2 tex : TEXCOORD0) : SV_TARGET
{
float4 color = shaderTexture.Sample(samplerState, tex);
float luminance = dot(color.rgb, float3(0.299, 0.587, 0.114));
// Dim text falls in mid-luminance range on dark background
float dimZone = smoothstep(0.15, 0.35, luminance) * smoothstep(0.75, 0.55, luminance);
// Boost dim text: 0.0=off, 1.0=max
float boosted = lerp(luminance, 1.0, dimZone * 0.8);
color.rgb *= boosted / max(luminance, 0.001);
return color;
}profiles.defaults:
"defaults": {
"colorScheme": "Campbell (modified)",
"experimental.pixelShaderPath": "C:\\Users\\Anto\\.claude\\boost-dim.hlsl"
}
schemes[0] โ Campbell (modified):
{
"name": "Campbell (modified)",
"background": "#0C0C0C",
"foreground": "#16C60C",
"selectionBackground": "#FFFFFF",
"black": "#0C0C0C",
"red": "#C50F1F",
"green": "#E7F545",
"yellow": "#C19C00",
"blue": "#0037DA",
"purple": "#881798",
"cyan": "#3A96DD",
"white": "#CCCCCC",
"brightBlack": "#767676",
"brightRed": "#E74856",
"brightGreen": "#B4C65E",
"brightYellow": "#F9F1A5",
"brightBlue": "#3B78FF",
"brightPurple": "#B4009E",
"brightCyan": "#61D6D6",
"brightWhite": "#F2F2F2",
"cursorColor": "#FFFFFF"
}
Solo 2 piezas activas: foreground verde + shader 80%.