Jump to content

LinesMesh smooth fading


Paradine
 Share

Recommended Posts

Linesmesh does not seem to have semitransparant option.
It is shown or it is invisible. (LinesMesh.visibility = 0.5 has no effect).

I have unsucessfully with animated visibility nor with material.alpha.

Animation itself works.
How do I make it smooth fade from visible to invisible ?

Link to comment
Share on other sites

Good to know about visibility. :)

I have tryed your soultion actually before already  and it wont work with this mesh:

var line = BABYLON.Mesh.CreateLines("line",                    [new BABYLON.Vector3(0.75, -0.1, -0.6),                    new BABYLON.Vector3(1, 0.30, -1.5),                    new BABYLON.Vector3(0.75, -0.23, -0.6)], scene);
Link to comment
Share on other sites

  • 1 year later...

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