Просмотр исходного кода

WebGLRenderer: Update TS file.

Mugen87 6 лет назад
Родитель
Сommit
3fd3bb70c7
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      src/renderers/WebGLRenderer.d.ts

+ 14 - 0
src/renderers/WebGLRenderer.d.ts

@@ -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.
    */

粤ICP备19079148号