Jump to content

[1.8] GUI incorrect shading upon multiple textures.


Recommended Posts

I would have thought this would have been quite a simple problem to find the answer to online, but after a couple hours of searching... I can't find a single thing.







Upon drawing multiple textures, the shading of the later does not match the source file.





/*--------------- Background ---------------*/
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)

	int marginHorizontal = (width - xSize) / 2;
	int marginVertical = (height - ySize) / 2;
	GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);

	//Draw main gui

	drawTexturedModalRect(marginHorizontal, marginVertical, 0, 0, xSize, ySize);

	//If search mode, draw catalogue
		drawTexturedModalRect(marginHorizontal, marginVertical, 0, 0, xSize, ySize);




I am presuming I just need to refresh something in the frontrenderer? or GL11? But I can't find (or figure out) what.


Any idea?


Thanks in advance.

Link to comment
Share on other sites

Sorry but what is it exactly not shading correctly?


Sorry for the bump, but I was away on holiday for the last week.


To answer your question, the area in the image where the 25 slots and search bar are. One of the balances of the image is off, but I can't figure out why or how to fix it.

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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