Jump to content

[1.7.2] Tessellator rendering - half texture


Sokaya

Recommended Posts

Have something like that (render top half):

	tessellator.addVertexWithUV(8, 8, 0, 0, 0);
	tessellator.addVertexWithUV(8, -8, 0, 0, 0);
	tessellator.addVertexWithUV(-8, -8, 0, 1, 0.5);
	tessellator.addVertexWithUV(-8, 8, 0, 1, 0.5);

And now how to render that bottom half?

Link to comment
Share on other sites

Yea and waste time for finding the piece of text about U/V.

Normally I render that top half with this:

		tessellator.addVertexWithUV(-8, -8, 0, 0, 0.5);
	tessellator.addVertexWithUV(-8, 8, 0, 0, 0);
	tessellator.addVertexWithUV(8, 8, 0, 1, 0);
	tessellator.addVertexWithUV(8, -8, 0, 1, 0.5);

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.