RenderContext.js 705 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { Vector4 } from 'three';
  2. let id = 0;
  3. class RenderContext {
  4. constructor() {
  5. this.id = id ++;
  6. this.color = true;
  7. this.clearColor = true;
  8. this.clearColorValue = { r: 0, g: 0, b: 0, a: 1 };
  9. this.depth = true;
  10. this.clearDepth = true;
  11. this.clearDepthValue = 1;
  12. this.stencil = false;
  13. this.clearStencil = true;
  14. this.clearStencilValue = 1;
  15. this.viewport = false;
  16. this.viewportValue = new Vector4();
  17. this.scissor = false;
  18. this.scissorValue = new Vector4();
  19. this.textures = null;
  20. this.depthTexture = null;
  21. this.activeCubeFace = 0;
  22. this.sampleCount = 1;
  23. this.width = 0;
  24. this.height = 0;
  25. this.isRenderContext = true;
  26. }
  27. }
  28. export default RenderContext;