Explorar o código

Account for 4 influnces per vertex in vertex shader

Sean Griffin %!s(int64=11) %!d(string=hai) anos
pai
achega
98e264a73a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/renderers/shaders/ShaderLib.js

+ 2 - 0
src/renderers/shaders/ShaderLib.js

@@ -1104,6 +1104,8 @@ THREE.ShaderLib = {
 
 			"			vec4 skinned  = boneMatX * skinVertex * skinWeight.x;",
 			"			skinned 	  += boneMatY * skinVertex * skinWeight.y;",
+			"			skinned 	  += boneMatZ * skinVertex * skinWeight.z;",
+			"			skinned 	  += boneMatW * skinVertex * skinWeight.w;",
 
 			"			displacedPosition  = skinned.xyz;",