@itwin/core-frontend
Version:
iTwin.js frontend components
27 lines • 1.49 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* 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.computeCompositeTechniqueId = computeCompositeTechniqueId;
const core_bentley_1 = require("@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 */
function computeCompositeTechniqueId(flags) {
(0, core_bentley_1.assert)(flags >= 0 && flags <= 7);
return compositeTechniqueIds[flags];
}
//# sourceMappingURL=TechniqueId.js.map