- Home /
Trouble with culling mask in Google cardboard.
hi, I am using google cardboard. I have a trouble. I am using two spheres one left and the other is right for both eyes and i created two layers for each spheres. In the left and right camera of cardboardMain, in the culling mask i have assigned the layers to be seen.
When i run the project the left and right layers in culling mask both camera in cardboardMain gets swapped. The left camera is projecting right image and the right camera is projecting the left image.
Please help, thanks in advance.
Answer by dolims · Aug 31, 2015 at 04:06 AM
The culling mask of the CardboardEye script is actually a toggle. It turns off bits that are enabled in the parent camera, and turns on bits that are disabled. Basically, you want to think of it like this: The left eye camera will have the same culling mask as the parent camera, except for the bits in its CardboardEye script, which are flipped. Same thing for the right eye.