Fixed texture types for gbuffer, and added basic attenuation