public void setCamera(Camera cam, boolean ortho) {
        // Tell the light filter which camera to use for filtering.
        if (lightFilter != null) {
            lightFilter.setCamera(cam);
        }
        setViewPort(cam);
        setViewProjection(cam, ortho);
    }
Sets the camera to use for rendering.

<p>First, the camera's
{@link Camera#setViewPort(float, float, float, float) view port parameters}
are applied. Then, the camera's {@link Camera#getViewMatrix() view} and
{@link Camera#getProjectionMatrix() projection} matrices are set
on the renderer. If <code>ortho</code> is <code>true</code>, then
instead of using the camera's view and projection matrices, an ortho
matrix is computed and used instead of the view projection matrix.
The ortho matrix converts from the range (0 ~ Width, 0 ~ Height, -1 ~ +1)
to the clip range (-1 ~ +1, -1 ~ +1, -1 ~ +1).

@param cam The camera to set
@param ortho True if to use orthographic projection (for GUI rendering),
    false if to use the camera's view and projection matrices.
jme3-core/src/main/java/com/jme3/renderer/RenderManager.java