* @private * Applies the current normal matrix to each normal.
(normals)
| 41 | * Applies the current normal matrix to each normal. |
| 42 | */ |
| 43 | transformNormals(normals) { |
| 44 | if (!this.hasTransform) return normals; |
| 45 | |
| 46 | return normals.map( |
| 47 | v => this.renderer.scratchMat3.multiplyVec(v) // this is a vec3 |
| 48 | ); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * @private |
no test coverage detected