Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Alternative of alphaTest();


Thomas7520
 Share

Recommended Posts

Hello, I come here because I noticed that the function GlStateManager._enableAlphaTest(); was deprecated. This is probably due to the new 3d engine. It bothers me a lot and despite my research I haven't found an alternative, could you help me?
 

Link to comment
Share on other sites

1 hour ago, Luis_ST said:

look into the RenderSystem class 

Already did and i didn't found about an alternative. However i checked PlayerRender class to see how nameTag render is used however i didn't found information about transparency of nametag. ( I mean we can see nametag throught blocks )

Link to comment
Share on other sites

8 hours ago, Luis_ST said:

the RenderSytem class has the method enableAlphaTest and disableAlphaTest use them. if this is not what you want, explain what exactly you are looking for

So I will explain what I am looking for. I would like to render a message above the head, like the nickname (i'm using RenderEntityEvent ). However when the player is in a cave as example, the player on the surface will not see his nickname. ( At a good distance of course ). In 1.12.2, I used the RenderSystem.enableAlphaTest() to see the text through blocks. I use the FontRenderer#drawInBatch() method to render my text however RenderSystem.enableAlphaTest() is deprecreated & seem doesn't work for FontRenderer#drawInBatch() method. So that's why i need help please !
 

 

Dz3tVnT.png

jY4gUlY.png

 

Edited by Thomas7520
Link to comment
Share on other sites

2 hours ago, Luis_ST said:

look into the vanilla code how they render the name above a player

I have already look, but now i think i'm so stupid... My answer was under my eyes...... I'm happy and angry..... Sorry for the inconvenience and thank you

 

rcGI9qT.png

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

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.