Zed mini texture RGB sequence

now I’m using zed mini in unity.

I want to get the zed texture and modify it.

SO first, I got the zedTexture: zedTexture = zedRenderingPlane.TextureEye;
and then applied it to my game object: testQuad.GetComponent<Renderer>().material.mainTexture = zedTexture;

then the RGB color sequence seems wrong
cuz purple looks as red, cyan looks as yellow, blue also almost red.

How can I fix it?

Thank you in advance!


You need to invert the R and B channels in your shader. I think the zed texture is BGR while you try to read it as RGB.

Best ,
Benjamin Vallon

Stereolabs Support