Jump to content

Can i apply texture and width to line created using mesh.CreateLine method


Brijesh
 Share

Recommended Posts

There might be a way that breaks the rules.  HighLightLayer

Do not forget you have to instance engine correctly by enabling stencil.  Unless this is no longer required this looks like a major ommission in the doc.  Since a playground does not instance engine, it will not be easy to know why it does not work.

var engine = new BABYLON.Engine(canvas, true, { stencil: true });

 

Link to comment
Share on other sites

I rarely do someone elses  playgrounds, but am thinking about strand / line based hair.  Highlights definitely work with lines

Wish it was more obvious how to control via width / amount of alpha.  If lines thicker that 1 pixel could be made using stencil, that could reduce the number of strands by maybe a factor of 2x.

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