summaryrefslogtreecommitdiff
path: root/Data
diff options
context:
space:
mode:
Diffstat (limited to 'Data')
-rw-r--r--Data/Sys/Shaders/Passive/horizontal.glsl7
1 files changed, 7 insertions, 0 deletions
diff --git a/Data/Sys/Shaders/Passive/horizontal.glsl b/Data/Sys/Shaders/Passive/horizontal.glsl
new file mode 100644
index 0000000000..7b2535bbf0
--- /dev/null
+++ b/Data/Sys/Shaders/Passive/horizontal.glsl
@@ -0,0 +1,7 @@
+// Passive (horizontal rows) shader
+
+void main()
+{
+ float screen_row = GetWindowResolution().y * GetCoordinates().y;
+ SetOutput(SampleLayer(int(screen_row) % 2));
+}