Added GLSL support for cube maps and mat3 constructors.
Added a matrix trim function for loading mat3 variables.
Fix vertedir bug as well.
Small GLSL additions.