UNPKG

@itwin/core-frontend

Version:
12 lines 807 B
/** @packageDocumentation * @module WebGL */ import { FragmentShaderBuilder } from "../ShaderBuilder"; export declare const testInside = "\nbool testInside(float x0, float y0, float x1, float y1, float x, float y) {\n vec2 perp = vec2(y0 - y1, x1 - x0), test = vec2(x - x0, y - y0);\n float dot = (test.x * perp.x + test.y * perp.y) / sqrt(perp.x * perp.x + perp.y * perp.y);\n return dot >= -0.001;\n}\n"; export declare const applyTexture: (isRealityTile: boolean) => string; export declare const overrideFeatureId = "return (classifierId == vec4(0)) ? (addUInt32s(feature_id * 255.0, vec4(featureIncrement, 0.0, 0.0, 0.0)) / 255.0) : classifierId;"; /** * @internal */ export declare function addApplySurfaceDraping(frag: FragmentShaderBuilder): void; //# sourceMappingURL=MaplayerDraping.d.ts.map