I'm developing game for Google Daydream and cameras that are used there are really confusing - all of their params are set to the same value when scene starts. Initially I had a problem with further object meshes clipping through each other. I found out that the solution to this is to set nearClippingPlane
to higher value. This caused next problem wich was the cockpit of my ship being not entirerly rendered because of this nearClippingPlane
being too far. I tried to create another camera that would render only the cockpit, but because of what I mentioned previously it doesn't work(the cameras act weird), and when I set it through a script it also doesn't work properly.
Because of that I need to change some property of the object, not the camera. I found this but it only works for farClippingPlane
(otherwise it would be perfect). Do you know how can I ignore nearClippingPlane
for one object/layer without adding second camera?