retrotails
07-25-2016, 08:45 AM
I have a passive 3D TV, and while it can technically take a side-by-side/top-bottom input, it has to composite it together which adds like 1 second of input latency. Makes everything unplayable. Here's a shader, forum doesn't allow the file extension so put the code in "interlaced.glsl" and drop it in dolphin's "Shaders/Anaglyph/" folder.
To work properly you need to have the internal resolution set to "Window Size", set the stereoscopy mode to "Anaglyph" and select the shader from the "Post-Processing effect" menu. You might also need the OpenGL backend since I think it's the only thing that supports GLSL shaders.
[attachment=15066]
To work properly you need to have the internal resolution set to "Window Size", set the stereoscopy mode to "Anaglyph" and select the shader from the "Post-Processing effect" menu. You might also need the OpenGL backend since I think it's the only thing that supports GLSL shaders.
Code:
void main() {
float2 pos = GetCoordinates() * GetResolution();
SetOutput(SampleLayer(int(pos.y)%2));
}