Jump to content

[1.10] renderItemIntoGUI enchanted glint effect


Lord_Rius

Recommended Posts

Hi!

 

When i render an item into gui and it is enchanted, the glint effect appears like that...

 

v8rR7ez.png

 

Here's my code

 

			GlStateManager.pushAttrib();
		RenderHelper.enableGUIStandardItemLighting();
		GlStateManager.disableDepth();
		mc.getRenderItem().renderItemAndEffectIntoGUI(hand, 4, 152);
		GlStateManager.enableDepth();
		mc.getRenderItem().renderItemOverlays(font, hand, 4, 153);
		RenderHelper.disableStandardItemLighting();
		GlStateManager.popAttrib();

 

i've disabled depth before item rendering because i want to render it behind any thing, in this case from chat section.

 

Zuy8e2r.png

 

If i don't disable depth, effect looks fine but on top of chat...

 

jRSnvom.png

 

How can if fix this?, also by other hand, using the same code, when shield is rendered, appears flipped when depth is disabled and fine when enabled...

 

lkP9zSE.png

 

Can anybody help me, please?

 

Thanks.

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.

Guest
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.