Jump to content

[1.7.2] Tessellator rendering - half texture


Recommended Posts

Posted

I have Tessellator things to render a quad and I need to render it to halfes.

But how to part that texture and render it?

 

Thanks,

Sokaya

Posted

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?

Posted

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);

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.