Minor code reorganize to be more similar and short.
Shorten fragment shader code.
Play with ajhager/webgl common package for desktop and webgl.