Learning how to create shaders, what am I missing here?

Are you using deferred in both examples?