@itwin/core-common
Version:
iTwin.js components common to frontend and backend
38 lines • 1.93 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 Rendering
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.NormalMapFlags = exports.TextureMapUnits = void 0;
/** Describes the units in which a [[TextureMapProps]]' scale is expressed.
* @public
* @extensions
*/
var TextureMapUnits;
(function (TextureMapUnits) {
/** Indicates the scale has no units. */
TextureMapUnits[TextureMapUnits["Relative"] = 0] = "Relative";
TextureMapUnits[TextureMapUnits["Meters"] = 3] = "Meters";
TextureMapUnits[TextureMapUnits["Millimeters"] = 4] = "Millimeters";
TextureMapUnits[TextureMapUnits["Feet"] = 5] = "Feet";
TextureMapUnits[TextureMapUnits["Inches"] = 6] = "Inches";
})(TextureMapUnits || (exports.TextureMapUnits = TextureMapUnits = {}));
/** Flags applied to a [[NormalMapProps]]. The enum values can be combined using bitwise operators.
* @public
*/
var NormalMapFlags;
(function (NormalMapFlags) {
/** No special flags. */
NormalMapFlags[NormalMapFlags["None"] = 0] = "None";
/** Indicates that the Y component of each vector - stored in the texture's green channel - points upward along the positive Y axis and should
* be negated. By default it points downward.
*/
NormalMapFlags[NormalMapFlags["GreenUp"] = 1] = "GreenUp";
/** If true, override the mapping mode with constant LOD mapping for the normal map. */
NormalMapFlags[NormalMapFlags["UseConstantLod"] = 2] = "UseConstantLod";
})(NormalMapFlags || (exports.NormalMapFlags = NormalMapFlags = {}));
//# sourceMappingURL=MaterialProps.js.map