WhoAteDaCake

Fading mesh color on edges

Recommended Posts

I have a mesh, that I would like to colour in a way, that the colour fades out near the edges.

The sandbox: https://codesandbox.io/s/zw63povrz4

My current approach uses canvas, to first draw the color texture and then drawing an opacity layer that will fade the colour out.

Expected resulthttps://i.imgur.com/YUCicAf.png

My questions:

  1. Is there an easier method to do this.
  2. In my current approach
    1. The texture does not fit on the mesh, which means the mesh does not show any fading out, as can be seen in canvas on the side.
    2. How can that be fixed?

 

 

Share this post


Link to post
Share on other sites

Hi @WhoAteDaCake well done for finding the answer. Please note that for future questions I suggest you join the new forum. As more and more people have already changed you might find that getting an answer on this one takes longer and longer☺

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.