transmit GLSL "defines" in ShaderPass

Otherwise we can't use defines in post processing shaders
Merge remote-tracking branch 'nraynaud/patch-2' into dev