@@ -63,6 +63,7 @@ function ShaderMaterial( parameters ) {
};
this.index0AttributeName = undefined;
+ this.uniformsNeedUpdate = false;
if ( parameters !== undefined ) {
@@ -1931,6 +1931,12 @@ function WebGLRenderer( parameters ) {
}
+ if ( material.isShaderMaterial && material.uniformsNeedUpdate === true ) {
+
+ WebGLUniforms.upload( _gl, materialProperties.uniformsList, m_uniforms, _this );
+ material.uniformsNeedUpdate = false;
+ }
// common matrices