Simplified 3D anaglyph code