()
| 251 | // Keep the world->model matrix current so the moss pattern stays locked to the |
| 252 | // model when it's moved, rotated or scaled. |
| 253 | function refreshMatrix() { |
| 254 | group.updateMatrixWorld(true); |
| 255 | moss.uModelInv.value.copy(group.matrixWorld).invert(); |
| 256 | } |
| 257 | |
| 258 | function loadURL(url, onError) { |
| 259 | loader.load( |