Cleaned up camera input code; re-added NL-dependence for shadows using flat shadow maps;