VideoCommon: Implement passive stereoscopic 3D

This commit is contained in:
iwubcode
2019-05-01 21:47:50 -05:00
parent 99a4ca8de7
commit c513bb5309
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));
}