Skip to content

Commit 90824e1

Browse files
committed
Removed normalMatrix
1 parent 2e77406 commit 90824e1

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/gameobjects/mesh/Mesh.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ var Mesh = new Class({
273273
*/
274274
this.transformMatrix = new Matrix4();
275275

276-
this.normalMatrix = new Matrix4();
277-
278276
/**
279277
* Internal cached value.
280278
*
@@ -1139,12 +1137,6 @@ var Mesh = new Class({
11391137
camera.projectionMatrix
11401138
);
11411139

1142-
var normalMatrix = this.normalMatrix;
1143-
1144-
normalMatrix.copy(transformMatrix);
1145-
normalMatrix.invert();
1146-
normalMatrix.transpose();
1147-
11481140
var z = camera.position.z;
11491141

11501142
var vertices = this.vertices;
@@ -1155,8 +1147,6 @@ var Mesh = new Class({
11551147
}
11561148

11571149
this.depthSort();
1158-
1159-
console.log('dirty');
11601150
},
11611151

11621152
/**

0 commit comments

Comments
 (0)