filterInplace method

  1. @override
void filterInplace(
  1. MeshGeometry mesh
)
override

Applies the filter to the mesh.

Implementation

@override
void filterInplace(MeshGeometry mesh) {
  final position = mesh.getViewForAttrib('POSITION');
  if (position is Vector3List) {
    for (var i = 0; i < position.length; ++i) {
      // multiplication always returns Vector3 here
      // ignore: invalid_assignment
      position[i] = transform * position[i];
    }
  }
}