diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-05-12 15:15:34 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-12 15:15:34 +1000 |
| commit | 707266aeed400a3403d3733328ea06a507fb4789 (patch) | |
| tree | 6b1ff686cf1f4a1ac37716ae0ed87f972d48330f /Data | |
| parent | 3bcee22f1747dad534e8e3095c604ad172591d39 (diff) | |
| parent | c513bb5309b9e608230caf5d77ed4c323046d007 (diff) | |
Merge pull request #8069 from iwubcode/passive_support
VideoCommon: Implement passive stereoscopic 3D
Diffstat (limited to 'Data')
| -rw-r--r-- | Data/Sys/Shaders/Passive/horizontal.glsl | 7 |
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)); +} |
