Glsl function transforms

Migrating transforms to new function system. 
Depends on PR #3.
redundant, and seems never to be used?