Jump to content

[1.14.4] render Texture in full white but keep alpha


TheOnlyTrueEnte

Recommended Posts

Hi there,

I'm trying to render my custom entity's blockstate member with my own texture all over it but keeping the original alpha channel. If that's too hard I'll settle for rendering it in all white.

I'm really new to GL11 and the closest I've gotten is this:

GlStateManager.disableTexture(); //disables alpha as well
GlStateManager.disableLighting();
GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
blockrendererdispatcher.renderBlockBrightness(Blocks.TNT.getDefaultState(), 1.0F);

But that completely disables the texture, including the alpha channel.

 

If anyone could link any good resources to learn GL's basic function that would also be greatly appreciated.

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.

Announcements



×
×
  • Create New...

Important Information

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