setScissor method

void setScissor(
  1. num x,
  2. num y,
  3. num width,
  4. num height,
)

Implementation

void setScissor(num x, num y, num width, num height) {
  // if (x.isVector4) {
  //   _scissor.set(x.x, x.y, x.z, x.w);
  // } else {
  //   _scissor.set(x, y, width, height);
  // }

  _scissor.set(x, y, width, height);

  state.scissor(
      _currentScissor.copy(_scissor).multiplyScalar(_pixelRatio).floor());
}