How to display a colored 3d mesh using Phong shader?
I am a beginner. I want to display a colored 3d facial mesh using phong shader. The facial mesh is obtained by 3d scanning, and every vertex has its own color(RGB).Please tell me this: can I display the mesh based on its own color, and simultaneously using phong shader.
I have read some reference documents about GLSL, I learned that in the fragment shader file the phong shader can be done, but how to lead the vertex color into the phong shader?
Thanks a lot!