resetGlobalState method

void resetGlobalState()

Implementation

void resetGlobalState() {
  if (uniform["value"] != globalState) {
    uniform["value"] = globalState;
    uniform["needsUpdate"] = numGlobalPlanes > 0;
  }

  numPlanes = numGlobalPlanes;
  numIntersection = 0;
}