Selaa lähdekoodia

Optimized skinning shader.

Duh, had to read my own explanation of how matrices work ;).
alteredq 13 vuotta sitten
vanhempi
commit
24a2c31937
3 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 0 0
      build/Three.js
  2. 0 0
      build/custom/ThreeWebGL.js
  3. 1 1
      src/renderers/WebGLShaders.js

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
build/Three.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 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.x ) ] * skinVertexA ) * skinWeight.x;",
 			"gl_Position += ( boneGlobalMatrices[ int( skinIndex.y ) ] * skinVertexB ) * skinWeight.y;",
 			"gl_Position += ( boneGlobalMatrices[ int( skinIndex.y ) ] * skinVertexB ) * skinWeight.y;",
 
 
-			"gl_Position  = projectionMatrix * viewMatrix * objectMatrix * gl_Position;",
+			"gl_Position  = projectionMatrix * modelViewMatrix * gl_Position;",
 
 
 		"#endif"
 		"#endif"
 
 

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä