WebGLRenderer constructor
WebGLRenderer(
- WebGLRendererParameters parameters
Implementation
WebGLRenderer(this.parameters) {
_width = this.parameters.width;
_height = this.parameters.height;
depth = this.parameters.depth;
stencil = this.parameters.stencil;
antialias = this.parameters.antialias;
premultipliedAlpha = this.parameters.premultipliedAlpha;
preserveDrawingBuffer = this.parameters.preserveDrawingBuffer;
powerPreference = this.parameters.powerPreference;
failIfMajorPerformanceCaveat = this.parameters.failIfMajorPerformanceCaveat;
alpha = this.parameters.alpha;
_viewport = Vector4(0, 0, width, height);
_scissor = Vector4(0, 0, width, height);
_gl = this.parameters.gl;
_setXR = this.parameters.xr;
initGLContext();
}