Small issue here that has been posted on SO yet there :
The thing is : I would like to customize the MeshStandardMaterial, without changing the original shader strings meshphysical_frag and meshphysical_vert obviously.
So I copied them in the fragmentShader and vertexShader strings of a ShaderMaterial (with my changes), and copied the original uniforms (I don't feel like flooding with the whole code, but it is reproduced in the stackoverflow question).
However the render always fails with the following error :
Cannot read property 'color' of undefined at the function StructuredUniform.setValue
I cannot find where the issue is.
Where is the mistake, is it the correct way to cutomize materials in Threejs ?