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

WebGLRenderer: Explaining code re-computation.

上级 b43193e0
......@@ -1475,6 +1475,7 @@ function WebGLRenderer( parameters ) {
material.onBeforeCompile( materialProperties.shader, _this );
// Computing code again as onBeforeCompile may have changed the shaders
code = programCache.getProgramCode( material, parameters );
program = programCache.acquireProgram( material, materialProperties.shader, parameters, code );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册