提交 d4b3dabe 编写于 作者: M Mr.doob

ShaderMaterial: Added uniformsNeedUpdate flag.

上级 3bcb9c2d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册