Jump to content

Fading mesh color on edges


WhoAteDaCake
 Share

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?

 

 

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