瀏覽代碼

WebGLRenderer: Renamed refreshUniformsStandard to refreshUniformsPhysical.

Mr.doob 10 年之前
父節點
當前提交
b489348d30
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/renderers/WebGLRenderer.js

+ 2 - 2
src/renderers/WebGLRenderer.js

@@ -1754,7 +1754,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 			} else if ( material instanceof THREE.MeshPhysicalMaterial ) {
 
-				refreshUniformsStandard( m_uniforms, material );
+				refreshUniformsPhysical( m_uniforms, material );
 
 			} else if ( material instanceof THREE.MeshDepthMaterial ) {
 
@@ -1973,7 +1973,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 	}
 
-	function refreshUniformsStandard ( uniforms, material ) {
+	function refreshUniformsPhysical ( uniforms, material ) {
 
 		uniforms.roughness.value = material.roughness;
 		//uniforms.reflectivity.value = material.reflectivity; // part of uniforms common