When the camera can be inside a shadow you must use zfail shadows not zpass. Read of shadows in the manual here: http://manual.conitec.net/shadow_stencil.htm