UNPKG

@itwin/core-frontend

Version:
24 lines 1.32 kB
/*--------------------------------------------------------------------------------------------- * 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 */ import { assert } from "@itwin/core-bentley"; const compositeTechniqueIds = [ -1 /* TechniqueId.Invalid */, // None = 0 10 /* TechniqueId.CompositeTranslucent */, // Translucent == 1 << 0 9 /* TechniqueId.CompositeHilite */, // Hilite == 1 << 1 == 2 11 /* TechniqueId.CompositeHiliteAndTranslucent */, // Hilite | Translucent == 1 | 2 == 3 12 /* TechniqueId.CompositeOcclusion */, // AmbientOcclusion == 1 << 2 == 4 13 /* TechniqueId.CompositeTranslucentAndOcclusion */, // Translucent | AmbientOcclusion == 1 | 4 == 5 14 /* TechniqueId.CompositeHiliteAndOcclusion */, // Hilite | AmbientOcclusion == 2 | 4 == 6 15 /* TechniqueId.CompositeAll */, // Translucent | Hilite | AmbientOcclusion == 1 | 2 | 4 == 7 ]; /** @internal */ export function computeCompositeTechniqueId(flags) { assert(flags >= 0 && flags <= 7); return compositeTechniqueIds[flags]; } //# sourceMappingURL=TechniqueId.js.map