Explorar o código

Optimized skinning shader.

Duh, had to read my own explanation of how matrices work ;).
alteredq %!s(int64=13) %!d(string=hai) anos
pai
achega
24a2c31937
Modificáronse 3 ficheiros con 1 adicións e 1 borrados
  1. 0 0
      build/Three.js
  2. 0 0
      build/custom/ThreeWebGL.js
  3. 1 1
      src/renderers/WebGLShaders.js

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
build/Three.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
build/custom/ThreeWebGL.js


+ 1 - 1
src/renderers/WebGLShaders.js

@@ -669,7 +669,7 @@ THREE.ShaderChunk = {
 			"gl_Position  = ( boneGlobalMatrices[ int( skinIndex.x ) ] * skinVertexA ) * skinWeight.x;",
 			"gl_Position += ( boneGlobalMatrices[ int( skinIndex.y ) ] * skinVertexB ) * skinWeight.y;",
 
-			"gl_Position  = projectionMatrix * viewMatrix * objectMatrix * gl_Position;",
+			"gl_Position  = projectionMatrix * modelViewMatrix * gl_Position;",
 
 		"#endif"
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio