@takram/three-atmosphere
Version:
A Three.js and R3F implementation of Precomputed Atmospheric Scattering
7 lines (6 loc) • 502 B
TypeScript
import { AtmosphereParameters } from '../AtmosphereParameters';
export declare function safeSqrt(a: number): number;
export declare function clampDistance(d: number): number;
export declare function rayIntersectsGround(atmosphere: AtmosphereParameters, r: number, mu: number): boolean;
export declare function distanceToTopAtmosphereBoundary(atmosphere: AtmosphereParameters, r: number, mu: number): number;
export declare function getTextureCoordFromUnitRange(x: number, textureSize: number): number;