Dolphin, the GameCube and Wii emulator - Forums

Full Version: 3D for passive/interlaced TVs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

retrotails

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.
Code:
void main() {
float2 pos = GetCoordinates() * GetResolution();
SetOutput(SampleLayer(int(pos.y)%2));
}
[attachment=15066]