hand transform sample glsl shader to js