Gl scalar tex float

Adds support for specifying scalar/monochrome textures with float and half float color types. Fixes #3039.
Same remark here.