Merge pull request #8069 from iwubcode/passive_support

VideoCommon: Implement passive stereoscopic 3D
This commit is contained in:
Connor McLaughlin 2019-05-12 15:15:34 +10:00 committed by GitHub
commit 707266aeed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 57 additions and 15 deletions

View file

@ -0,0 +1,7 @@
// Passive (horizontal rows) shader
void main()
{
float screen_row = GetWindowResolution().y * GetCoordinates().y;
SetOutput(SampleLayer(int(screen_row) % 2));
}