"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module WebGL
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.createClearTranslucentProgram = void 0;
const ViewportQuad_1 = require("./ViewportQuad");
const computeBaseColor = "return vec4(0.0);";
const assignFragData = `
  FragColor0 = vec4(0.0, 0.0, 0.0, 1.0);
  FragColor1 = vec4(1.0, 0.0, 0.0, 1.0);
`;
/** @internal */
function createClearTranslucentProgram(context) {
    const builder = (0, ViewportQuad_1.createViewportQuadBuilder)(false);
    const frag = builder.frag;
    frag.set(1 /* FragmentShaderComponent.ComputeBaseColor */, computeBaseColor);
    frag.addDrawBuffersExtension(2);
    frag.set(16 /* FragmentShaderComponent.AssignFragData */, assignFragData);
    builder.vert.headerComment = "//!V! ClearTranslucent";
    builder.frag.headerComment = "//!F! ClearTranslucent";
    return builder.buildProgram(context);
}
exports.createClearTranslucentProgram = createClearTranslucentProgram;
//# sourceMappingURL=ClearTranslucent.js.map