Skip to content

Instantly share code, notes, and snippets.

View lagemanngui's full-sized avatar
🏠
Working from home

Guilherme Lagemann lagemanngui

🏠
Working from home
  • Brazil
View GitHub Profile
@lagemanngui
lagemanngui / ntsc_adaptive.gdshader
Last active May 21, 2026 12:57
NTSC-Adaptive shader — port of libretro/glsl-shaders ntsc/ntsc-adaptive (Themaister)
// NTSC-Adaptive — port of libretro/glsl-shaders ntsc/ntsc-adaptive (Themaister).
//
// Simulates an NTSC composite signal path: RGB is encoded to YIQ, chroma is
// modulated per scanline, luma/chroma bleed via a crosstalk matrix, then a
// horizontal FIR filter decodes back to RGB (rainbow artifacts, color bleed).
//
// Locked to Composite quality (1) + 2-phase carrier; preset/phase branches and
// their uniforms have been stripped out for a single specialized variant.
//
// Setup: ColorRect (fullscreen) + ShaderMaterial with this shader on a top