mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-06 16:31:03 +00:00
39 lines
633 B
JavaScript
39 lines
633 B
JavaScript
import { Vector4 } from 'three';
|
|
|
|
let id = 0;
|
|
|
|
class RenderContext {
|
|
|
|
constructor() {
|
|
|
|
this.id = id ++;
|
|
|
|
this.color = true;
|
|
this.clearColor = true;
|
|
this.clearColorValue = { r: 0, g: 0, b: 0, a: 1 };
|
|
|
|
this.depth = true;
|
|
this.clearDepth = true;
|
|
this.clearDepthValue = 1;
|
|
|
|
this.stencil = true;
|
|
this.clearStencil = true;
|
|
this.clearStencilValue = 1;
|
|
|
|
this.viewport = false;
|
|
this.viewportValue = new Vector4();
|
|
|
|
this.scissor = false;
|
|
this.scissorValue = new Vector4();
|
|
|
|
this.texture = null;
|
|
this.depthTexture = null;
|
|
this.activeCubeFace = 0;
|
|
this.sampleCount = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default RenderContext;
|