Got the g buffer stage of the deferred shader more or less working.