Setting rotation by 2 points


#1
g.begin();
		g.setPipeline(pipeline);
		g.setVertexBuffer(vertexBuffer2);
		g.setIndexBuffer(indexBuffer2);

		var from = new Vec4(0.0, 0.0, 1.0);
		var to = new Vec4(1.0, 1.0, 1.0);		

		var v1 = new Vec4();
		var v2 = new Vec4();

		v1.set(0, 0, 1);
		v2.setFrom(to).sub(from).normalize();

		var t = new Quat().fromTo(v1, v2);

		x.fromQuat(t);

		g.setMatrix(y, x.self);
		g.drawIndexedVertices();
		g.end();

What im doing wrong :)) ??

Its being skewed, but I only touch x and y’s