resetGlobalState method

dynamic resetGlobalState()

Implementation

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

  numPlanes = numGlobalPlanes;
  numIntersection = 0;
}