The 'instanceColor' buffer attribute has no effect on instances using MeshRefractionMaterial, no matter what color you've set in the InstancedBufferAttribute, the diamond stones in the sandbox just turn out 'white'. However, testing with other materials (e.g. meshBasicMaterial or meshPhysicalMaterial) instead of MeshRefractionMaterial proves fine, various colors can be set onto the instances like in the following image.
Dependencies on codesandbox demo:
Problem description:
The 'instanceColor' buffer attribute has no effect on instances using MeshRefractionMaterial, no matter what color you've set in the InstancedBufferAttribute, the diamond stones in the sandbox just turn out 'white'. However, testing with other materials (e.g. meshBasicMaterial or meshPhysicalMaterial) instead of MeshRefractionMaterial proves fine, various colors can be set onto the instances like in the following image.
Relevant code:
Demo running on codesandbox: https://codesandbox.io/p/sandbox/diamond-ring-forked-fqwllc
The code for the instancedMesh component: