Search Unity

Moving vertices of a mesh by vertex color

Discussion in 'Shaders' started by viktorkadza, Jul 19, 2019.

  1. viktorkadza

    viktorkadza

    Joined:
    Sep 4, 2018
    Posts:
    9
    Hello i am new in Unity Scripting
    , i need help in a basic script to move some vertices of a imported mesh depending on their vertex color. For example moving the vertices which have rgb(0,0,0) and rgb(1,0,0) color in Y direction by 1cm. I started with the basic script from the documentation, but can not figure out how get the vertices by their vertex color. Thanks!
     

    Attached Files: