title: Dynamically add new uniform to a material in ThreeJs?
body: <p>Is it possible to add a new uniform to a standard MeshMaterial dynamically in ThreeJs?</p>
  
  <p>Something like this:</p>
  
  <pre><code>material = new THREE.MeshPhongMaterial();
  material.uniforms = {
    customTexture: new THREE.Texture(canvas),
    textureSize: { value: 1024 },
  };
  </code></pre>
  
  <p>I have modified some THREE.ShaderChunks so it is able to use the new uniforms in the shader, but it seems that the new uniforms are ignored by three.js when the material gets compiled...</p>