UNPKG

@itwin/core-frontend

Version:
7 lines 664 B
import { FragmentShaderBuilder, ProgramBuilder } from "../ShaderBuilder"; export declare const warpDepth = "\n// Applies exponential warp to shadow map depth, input depth should be in [0, 1]\nvec2 warpDepth(float depth, float exponent) {\n depth = 2.0 * depth - 1.0; // Rescale depth into [-1, 1]\n float pos = exp( exponent * depth);\n float neg = -exp(-exponent * depth);\n return vec2(pos, neg);\n}\n"; /** @internal */ export declare function addEvsmExponent(frag: FragmentShaderBuilder): void; /** @internal */ export declare function addSolarShadowMap(builder: ProgramBuilder, toTerrain?: boolean): void; //# sourceMappingURL=SolarShadowMapping.d.ts.map