# SPDX-FileCopyrightText: 2020 AJCM-git <60196617+AJCM-git@users.noreply.github.com> # SPDX-FileCopyrightText: 2020 Pieter-Jan Briers # SPDX-FileCopyrightText: 2020 VĂ­ctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com> # SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com> # # SPDX-License-Identifier: MIT - type: shader id: StencilClear kind: source path: "/Textures/Shaders/stencil_clear.swsl" stencil: ref: 0 op: Replace func: Always # Draws to the stencil buffer if the alpha is not set to 0. - type: shader id: StencilMask kind: source path: "/Textures/Shaders/stencil_mask.swsl" stencil: ref: 1 op: Replace func: Always # Draws if the texture in the stencil buffer is not equal to white. - type: shader id: StencilDraw kind: canvas stencil: ref: 1 op: Keep func: NotEqual # Draws if the texture in the stencil buffer is equal to white. - type: shader id: StencilEqualDraw kind: canvas stencil: ref: 1 op: Keep func: Equal