UNPKG

@itwin/core-common

Version:

iTwin.js components common to frontend and backend

26 lines 1.65 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 Entities */ /** Describes the type of transparency in the pixels of a [TextureImage]($frontend). * Each pixel can be classified as either opaque or translucent. * The transparency of the image as a whole is based on the combination of pixel transparencies. * If this information is known, it should be supplied when creating a texture for more efficient rendering. * @see [TextureImage.transparency]($frontend). * @public */ export var TextureTransparency; (function (TextureTransparency) { /** The image contains only opaque pixels. It should not blend with other objects in the scene. */ TextureTransparency[TextureTransparency["Opaque"] = 0] = "Opaque"; /** The image contains only translucent pixels. It should blend with other objects in the scene. */ TextureTransparency[TextureTransparency["Translucent"] = 1] = "Translucent"; /** The image contains both opaque and translucent pixels. The translucent pixels should blend with other objects in the scene, while * the opaque pixels should not. Rendering this type of transparency is somewhat more expensive. */ TextureTransparency[TextureTransparency["Mixed"] = 2] = "Mixed"; })(TextureTransparency || (TextureTransparency = {})); //# sourceMappingURL=TextureProps.js.map