Browse Source

Fixed bug in hemisphere light in Lambert shader.

alteredq 13 năm trước cách đây
mục cha
commit
09991eb059

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
build/three.min.js


+ 1 - 1
src/renderers/WebGLShaders.js

@@ -665,7 +665,7 @@ THREE.ShaderChunk = {
 
 
 				"lVector = normalize( lVector );",
 				"lVector = normalize( lVector );",
 
 
-				"float dotProduct = dot( normal, lVector );",
+				"float dotProduct = dot( transformedNormal, lVector );",
 
 
 				"float hemiDiffuseWeight = 0.5 * dotProduct + 0.5;",
 				"float hemiDiffuseWeight = 0.5 * dotProduct + 0.5;",
 				"float hemiDiffuseWeightBack = -0.5 * dotProduct + 0.5;",
 				"float hemiDiffuseWeightBack = -0.5 * dotProduct + 0.5;",

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác

粤ICP备19079148号