Anaglyph cameras

Anaglyph camera constructor has a third argument of eyeSpace. According to the docs. It separates the two views of the object that amount.

Is it possible to set the colors of this two views of the objects to better fit to the googles one has? Like, set left view to one color and right one to another color.

You mean switch the colors? Apparently you can do that with

camera.rigCameras.reverse();

https://playground.babylonjs.com/#BCU1XR#581

Or you can modify the shader:

https://playground.babylonjs.com/#BCU1XR#580

No, dont mean switching colors. I mean changing the colors of each view.

Ok, here’s another modified shader:

https://playground.babylonjs.com/#BCU1XR#585

Thank you but I am not so expert in 3D programming and shaders and shaders code even etc.

So that means a “yes one can change the colors of each view in anaglyph camera”, “separately”. To be explicit, and so for future readers.