提交 376987e6 编写于 作者: H hazed

fix double WebGLUniforms upload for ShaderMaterial if uniformsNeedUpdate

上级 ab18028c
...@@ -1982,9 +1982,7 @@ function WebGLRenderer( parameters ) { ...@@ -1982,9 +1982,7 @@ function WebGLRenderer( parameters ) {
WebGLUniforms.upload( _gl, materialProperties.uniformsList, m_uniforms, textures ); WebGLUniforms.upload( _gl, materialProperties.uniformsList, m_uniforms, textures );
} } else if ( material.isShaderMaterial && material.uniformsNeedUpdate === true ) {
if ( material.isShaderMaterial && material.uniformsNeedUpdate === true ) {
WebGLUniforms.upload( _gl, materialProperties.uniformsList, m_uniforms, textures ); WebGLUniforms.upload( _gl, materialProperties.uniformsList, m_uniforms, textures );
material.uniformsNeedUpdate = false; material.uniformsNeedUpdate = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册