fixed cube sample (callback syntax change in haxe3; unknown variable pos in shader)
fixed vector length() to length for non h3d projects