fixed cube_0 sample; fixed vector.length

fixed cube_0 sample for haxe3; (callback syntax + input.pos within shader) 
fixed vector.length for non h3d projects in hxsl.Shader