Explorar el Código

Fix Matrix3, Matix4 applyToBuffer (#9910)

* Fix Matix4 applyToBuffer

`BufferAttribute.setXYZ` was missing `index` argument.

* Fix Matrix3 applyToBuffer
Jay Weeks hace 9 años
padre
commit
d9a7ea4945
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/math/Matrix3.js
  2. 1 1
      src/math/Matrix4.js

+ 1 - 1
src/math/Matrix3.js

@@ -137,7 +137,7 @@ Matrix3.prototype = {
 
 				v1.applyMatrix3( this );
 
-				buffer.setXYZ( v1.x, v1.y, v1.z );
+				buffer.setXYZ( j, v1.x, v1.y, v1.z );
 
 			}
 

+ 1 - 1
src/math/Matrix4.js

@@ -490,7 +490,7 @@ Matrix4.prototype = {
 
 				v1.applyMatrix4( this );
 
-				buffer.setXYZ( v1.x, v1.y, v1.z );
+				buffer.setXYZ( j, v1.x, v1.y, v1.z );
 
 			}