Ghgl vertex color?

(Ho) #1

Does anyone know to get vertex color in ghgl like gl_Color?

vertex could be got from " layout(location = 0) in vec3 _meshVertex; " , but how about vertex color?

(Steve Baer) #2

Do you want the vertex colors that are already set on a mesh? This is currently not available, but I could probably wire it up pretty quick.

(Ho) #3

Yes, input mesh already has vertex color.I’m looking forward update.

(Steve Baer) #4

I just updated ghgl to version 0.3.5 which you should be able to install from TestPackageManager in Rhino.

This includes support for mesh vertex colors. A sample using this in GhGL can be found at

(Ho) #5

Oh, Thank you, this is what i want.
Thank you again !