I am looking at this example - https://www.babylonjs-playground.com/#8L50Q3#1
These are InstancedMesh(s) and there is a VertexBuffer
var buffer = new BABYLON.VertexBuffer(engine, colorData, BABYLON.VertexBuffer.ColorKind, false, false, 4, true); box.setVerticesBuffer(buffer);
It is not clear to me how is this buffer connected with the color property of the material. Is it by default because of the ColorKind? What if the Mesh has a material with 4 different color properties?
I am trying it for a InstancedMesh with a PBRMaterial but the PBRMaterial has no color property. It has four different color property but not a single one.
The documentation at Use Instances - Babylon.js Documentation says
Is there a list of what else could be registered instead of “color”. Can a buffer for “material.diffusiveColor” be registered?