t)) {
						// Fix if instanceOffset is changing
						// Most of the time it's because the mesh is mounted under the skeleton
						node.onBeforeRender = function() {
							SceneUtils.getRelativeMatrixFromRoot(node, object, offsetMatrix);
							offsetMatrix.toArray(material.uniforms.instanceOffset);
						};
					}

					node.geometry.addAttribute('instanceMatrix', instanceMatrixAttribute);
					node.geometry.instanceCount = params.instanceCount;

					node.material = material;

					geometries.push(node