init method

dynamic init(
  1. List<Plane> planes,
  2. bool enableLocalClipping,
  3. Camera camera
)

Implementation

init(List<Plane> planes, bool enableLocalClipping, Camera camera) {
  var enabled = planes.isNotEmpty ||
      enableLocalClipping ||
      // enable state of previous frame - the clipping code has to
      // run another frame in order to reset the state:
      numGlobalPlanes != 0 ||
      localClippingEnabled;

  localClippingEnabled = enableLocalClipping;

  globalState = projectPlanes(planes, camera, 0, null);
  numGlobalPlanes = planes.length;

  return enabled;
}