Shadow calculation problem in side by side mode

Does anyone know what the problem is?

in normal mode is ok

in side by side mode,has some problem

I wonder if the default interocular distance may be getting applied to the shadow camera.

Is it fixed if you call light.getLens().setInterocularDistance(0) explicitly?
Or, in C++:

light->get_lens()->set_interocular_distance(0);

thanks! :smiley: OK now!!!

http://www.liupiaoying.cn/demo/learning.mp4

Great, thanks! I’ve checked in a fix so that Panda automatically sets the interocular distance for lights to 0.