hi. i just thought about if it's possible to create an anaglyph vision with a shader.
for each frame that is finally displayed, there has to be made two shots of the scene, one with the camera slightly moved to the left, and one slightly moved to the right. each of the pictures should be color-filtered so that only the red, or in the other case, the cyan or green/blue values are visible. the pictures should be merged together (i used the accumulation buffer for this in opengl) and then displayed.
i always thought this wouldn't work with a shader since the displacement caused by a camera decreases on distant objects and i thought the displacement with a shader always stays the same.
can you tell me if i'm wrong or right?