Fixed up shaders. FlatGenerator in API now works.

@RoyAwesome , we need a serious cleanup of the shaders and to make sure
they work. I see many that do the same thing as well as absoltuely no
standards to it.
Signed-off-by: Chris Sanders <zidane@outlook.com>