|
@@ -85,6 +85,15 @@ export interface WebGLRendererParameters {
|
|
|
logarithmicDepthBuffer?: boolean;
|
|
|
}
|
|
|
|
|
|
+export interface WebGLDebug {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Enables error checking and reporting when shader programs are being compiled.
|
|
|
+ */
|
|
|
+ checkShaderErrors: boolean;
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* The WebGL renderer displays your beautifully crafted scenes using WebGL, if your device supports it.
|
|
|
* This renderer has way better performance than CanvasRenderer.
|
|
@@ -128,6 +137,11 @@ export class WebGLRenderer implements Renderer {
|
|
|
*/
|
|
|
autoClearStencil: boolean;
|
|
|
|
|
|
+ /**
|
|
|
+ * Debug configurations.
|
|
|
+ */
|
|
|
+ debug: WebGLDebug;
|
|
|
+
|
|
|
/**
|
|
|
* Defines whether the renderer should sort objects. Default is true.
|
|
|
*/
|