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