Glsl function transforms

Migrating transforms to new function system. 
Depends on PR #3.
Does it not inherit this property?