Debian Codegraph @

Data/Sys/Shaders/Passive/horizontal.glsl

raw
1 // Passive (horizontal rows) shader
2
3 void main()
4 {
5 float screen_row = GetWindowResolution().y * GetCoordinates().y;
6 SetOutput(SampleLayer(int(screen_row) % 2));
7 }