Jump to content

custom colors material[solved]


Recommended Posts


Let's explain my problem. 

I have an array of points. 


Tasks: 1. Create a mesh according to input points. It was simple, using CreateRibbon. 

             2. Add a material to mesh, according to input points height. I found a few option:

- gradient Material

- terrain Material 

- custom Material

- or adding color property direct to the vertex data, like here http://www.babylonjs-playground.com/#VKBJN#104


Personally, I prefer last option, but I don't understand to  good how colors works :(

I am willing to try any option. :D. I feel like and idiot because I think it's not too complicate. 


Link to comment
Share on other sites

Hi. I know I marked it as solved but I have one more question  on this subject. :)))


If I use a standard material on ribbon, it keeps the colors previously set. But if i set a grid material it loses its settings. 

Can I force it to keep colors, or I have to modify grid shader?



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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...