RenderContext.js 671 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 = true;
  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.texture = null;
  20. this.depthTexture = null;
  21. this.activeCubeFace = 0;
  22. this.sampleCount = 1;
  23. this.width = 0;
  24. this.height = 0;
  25. }
  26. }
  27. export default RenderContext;