Janx Posted June 9, 2017 Share Posted June 9, 2017 Hi, I want to use textures with contain areas which zero alpha. However I see unwanted borders around them. Here is a playground to clarify my problem: http://www.babylonjs-playground.com/#AN5WBF#3 Am I doing something wrong? How can I get rid of the border? Edit: Here is the same problem, with a different texture: http://www.babylonjs-playground.com/#AN5WBF#4 Many thanks, Cheers, jan Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted June 9, 2017 Share Posted June 9, 2017 Hi @Janx Your issue seemed to mainly be bad lightning, Here's a fixed & simplified version; http://www.babylonjs-playground.com/#AN5WBF#5 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 9, 2017 Share Posted June 9, 2017 Hi guys! Also, you may wish to add the clamps... to the opacityTexture and emissiveTexture channels, too. http://www.babylonjs-playground.com/#AN5WBF#6 Lines 50-54. There is some kind of border dispute between the Babylonians and the Epsilonians. One of those countries talked of building a wall on the border, but it was deemed "inini". (infeasible'n'implausible'n'impractical) (okay, okay, I don't have the BEST comedy writers, but my guys work cheap). Quote Link to comment Share on other sites More sharing options...
Janx Posted June 9, 2017 Author Share Posted June 9, 2017 Hi guys, thanks for the quick help. The gradient looks good, but when I try it with the star, I still get these borders: http://www.babylonjs-playground.com/#AN5WBF#8 Basically what I want is a texture with alpha one a plane which is not affected by lighting. Am I better off writing a custom shader? Many thanks, jan Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 9, 2017 Share Posted June 9, 2017 This topic seems like it might be a recent retread. See Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.