@itwin/core-frontend
Version:
iTwin.js frontend components
18 lines • 1.31 kB
TypeScript
import { ProgramBuilder } from "../ShaderBuilder";
import { IsThematic } from "../TechniqueFlags";
export declare const volClassOpaqueColor = "\nvec4 volClassColor(vec4 baseColor, float depth) {\n if (depth <= TEXTURE(s_pClassSampler, windowCoordsToTexCoords(gl_FragCoord.xy)).r)\n discard;\n return vec4(baseColor.rgb, 1.0);\n}\n";
/** @internal */
export declare function addColorPlanarClassifier(builder: ProgramBuilder, translucent: boolean, isThematic: IsThematic): void;
/** @internal */
export declare function addFeaturePlanarClassifier(builder: ProgramBuilder): void;
/** @internal */
export declare function addHilitePlanarClassifier(builder: ProgramBuilder, supportTextures?: boolean): void;
/** The classified geometry needs some information about the classifier geometry. The classified fragment shader outputs special values that do not represent valid RGB+A combinations when using
* pre-multiplied alpha. The alpha channel will be 0.5, and the red, green, and/or blue channels will be 1.0:
* - Red: hilited.
* - Green: flashed.
* - Blue: fully-transparent. Indicates clipping mask (discard the classified pixel).
* @internal
*/
export declare function addOverrideClassifierColor(builder: ProgramBuilder, isThematic: IsThematic): void;
//# sourceMappingURL=PlanarClassification.d.ts.map