Jump to content

How to remove the black contour on the textBlock with AdvancedDynamicTexture


AnnaBruel
 Share

Recommended Posts

This is because of how its mixing the anti-aliasing fade with the background.

when the background becomes transparent it effectively becomes rgba(0,0,0,0);
so when mixing the anti aliasing is mixing with a black background.

unfortunately when you set the alpha of a rgba(255,255,255,0) or set the bg to "transparent" it defaults back to rgba(0,0,0,0)... which is FASDKJFSK:AFA annoying but yeah that's how that works.
 
advancedTexture.background = "rgba(255,0,0,0.01)";
as a hacky workaround.


I might be able to do a pull request to make a fix for this... but I am way loaded on stuff right now.
https://playground.babylonjs.com/#CY31UX#10
 

 
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.   Paste as plain text instead

  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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...