static GVRPerspectiveCamera makePerspShadowCamera ( GVRPerspectiveCamera centerCam , float coneAngle ) { GVRPerspectiveCamera camera = new GVRPerspectiveCamera ( centerCam . getGVRContext ( ) ) ; float near = centerCam . getNearClippingDistance ( ) ; float far = centerCam . getFarClippingDistance ( ) ; camera . setNearClippingDistance ( near ) ; camera . setFarClippingDistance ( far ) ; camera . setFovY ( ( float ) Math . toDegrees ( coneAngle ) ) ; camera . setAspectRatio ( 1.0f ) ; return camera ; }
Adds a perspective camera constructed from the designated perspective camera to describe the shadow projection . This type of camera is used for shadows generated by spot lights .