Jelajahi Sumber

Optimized skinning shader.

Duh, had to read my own explanation of how matrices work ;).
alteredq 13 tahun lalu
induk
melakukan
24a2c31937
3 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 0 0
      build/Three.js
  2. 0 0
      build/custom/ThreeWebGL.js
  3. 1 1
      src/renderers/WebGLShaders.js

File diff ditekan karena terlalu besar
+ 0 - 0
build/Three.js


File diff ditekan karena terlalu besar
+ 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"
 

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini