未验证 提交 f09e1a6a 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #13178 from cnspaha/patch-8

GLTFLoader: only refresh uniforms on correct material
......@@ -606,6 +606,12 @@ THREE.GLTFLoader = ( function () {
// Here's based on refreshUniformsCommon() and refreshUniformsStandard() in WebGLRenderer.
refreshUniforms: function ( renderer, scene, camera, geometry, material, group ) {
if ( material.isGLTFSpecularGlossinessMaterial !== true ) {
return;
}
var uniforms = material.uniforms;
var defines = material.defines;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册