Skip to content

Instantly share code, notes, and snippets.

View ashley-wilkinson's full-sized avatar

Ashley Wilkinson ashley-wilkinson

View GitHub Profile
@ashley-wilkinson
ashley-wilkinson / mad-scanlines-crt.glsl
Last active September 14, 2026 05:34 — forked from mariodivece/mad-scanlines-crt.glsl
CRT Scanline Effect for Dolphin Emulator
void main()
{
float currentMillis = GetTime() / float(1000.0);
float2 coords = GetCoordinates();
float lineCount = GetWindowResolution().y / 2.0;
// scanlines
int lineIndex = int( ( coords.y + currentMillis * 0.5 ) * lineCount );
#ifdef API_OPENGL
float lineIntensity = mod(float(lineIndex), 2);