thinInstance customColor in ShaderMaterial

https://playground.babylonjs.com/#2IVLHK#8What am I missing? https://playground.babylonjs.com/#2IVLHK#6

All I get is black. Perhaps color is a special case… I’d like to ‘pass’ data to my shaders.

Edit (to fix unrelated problem in fragment shader): https://playground.babylonjs.com/#2IVLHK#8

customColor is an attribute. But you set it in the uniforms array at line 57. Move it to attributes array works.

https://playground.babylonjs.com/#2IVLHK#7

1 Like

Thank you.