# HyprTile CRT Royale

A high-end, original CRT simulation for HyprTile's generic compositor-FX host.
It is inspired by the physical ideas used by advanced emulator CRT pipelines,
but the shader implementation in this directory is written specifically for
HyprTile.

Pipeline:

1. quarter-resolution linear-light bright extraction
2. packed dual-radius horizontal optical blur
3. packed dual-radius vertical optical blur
4. full-resolution CRT synthesis

The packed optical branch stores tight chromatic bloom in RGB and broad scalar
halation in alpha. The final pass adds geometry, analog horizontal
reconstruction, luminance-dependent electron-beam width, selectable phosphor
mask geometry, convergence error, scanlines, bloom/halation, vignette/corners,
contrast/saturation and output transfer.

`mask_type` values used by the presets:

- `0`: aperture grille / Trinitron-like vertical RGB stripes
- `1`: staggered slot mask
- `2`: staggered shadow-mask / dot impression
- `3`: no phosphor mask
