This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,27 @@
import { ExtensionType } from '../../../extensions/Extensions';
import { STENCIL_MODES } from '../shared/state/const';
import type { RenderTarget } from '../shared/renderTarget/RenderTarget';
import type { System } from '../shared/system/System';
import type { WebGLRenderer } from './WebGLRenderer';
/**
* This manages the stencil buffer. Used primarily for masking
* @memberof rendering
*/
export declare class GlStencilSystem implements System {
/** @ignore */
static extension: {
readonly type: readonly [ExtensionType.WebGLSystem];
readonly name: "stencil";
};
private _gl;
private readonly _stencilCache;
private _renderTargetStencilState;
private _stencilOpsMapping;
private _comparisonFuncMapping;
private _activeRenderTarget;
constructor(renderer: WebGLRenderer);
protected contextChange(gl: WebGLRenderingContext): void;
protected onRenderTargetChange(renderTarget: RenderTarget): void;
setStencilMode(stencilMode: STENCIL_MODES, stencilReference: number): void;
destroy?: () => void;
}