Hey, I want to make a laser and I'm rendering a 3D line. However, I want to add a texture to it but I'm not quite sure how to do it. Can someone tell me what I have to put in the tex method? This is my code
public void fillTex(Matrix4f matrix, Matrix4f matrix2) {
BufferBuilder bufferbuilder = Tessellator.getInstance().getBuffer();
RenderSystem.enableBlend();
RenderSystem.enableTexture();
RenderSystem.defaultBlendFunc();
GL11.glLineWidth(5);
Minecraft.getInstance().getTextureManager().bindTexture(laserTexture);
bufferbuilder.begin(2, DefaultVertexFormats.POSITION_TEX);
bufferbuilder.pos(matrix, (float) 0, (float) 0, (float) 0).tex(0, 0).endVertex();
bufferbuilder.pos(matrix2, (float) 0, (float) 0, (float) 0).tex(100, 100).endVertex();
bufferbuilder.finishDrawing();
WorldVertexBufferUploader.draw(bufferbuilder);
RenderSystem.disableTexture();
RenderSystem.disableBlend();
}