Posted February 13, 20169 yr Hi. I want to render a gradient rectangle in the world but it doesn't render the gradient. render.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_COLOR); render.pos(length, -beamWidth, beamWidth).color(r2, g2, b2, alpha).endVertex(); render.pos(length, beamWidth, beamWidth).color(r2, g2, b2, alpha).endVertex(); render.pos(0, beamWidth, beamWidth).color(r, g, b, alpha).endVertex(); render.pos(0, -beamWidth, beamWidth).color(r, g, b, alpha).endVertex(); tes.draw(); How can I render a gradient rectangle in the world with the Tessellator and the WorldRenderer?
February 13, 20169 yr In 1.7 i used a tessellator and a gradient texture that i created on photoshop to do this. I dont know if you can do the same thing on 1.8
February 13, 20169 yr Author I forgot to say, that I want use dynamic colors. If this is possible EDIT: Forgot that it's possible to set a color overlay
February 14, 20169 yr Use a white texture with alpha. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.