Edits to allow both deferred and forward renderer work and enable shadow
mapping.