@takram/three-clouds
Version:
A Three.js and R3F implementation of geospatial volumetric clouds
26 lines (25 loc) • 1.04 kB
TypeScript
import { DensityProfile, DensityProfileLike } from './DensityProfile';
declare const paramKeys: readonly ["channel", "altitude", "height", "densityScale", "shapeAmount", "shapeDetailAmount", "weatherExponent", "shapeAlteringBias", "coverageFilterWidth", "shadow", "densityProfile"];
export interface CloudLayerLike extends Partial<Pick<CloudLayer, Exclude<(typeof paramKeys)[number], 'densityProfile'>>> {
densityProfile?: DensityProfileLike;
}
export type TextureChannel = 'r' | 'g' | 'b' | 'a';
export declare class CloudLayer {
static readonly DEFAULT: CloudLayer;
channel: TextureChannel;
altitude: number;
height: number;
densityScale: number;
shapeAmount: number;
shapeDetailAmount: number;
weatherExponent: number;
shapeAlteringBias: number;
coverageFilterWidth: number;
densityProfile: DensityProfile;
shadow: boolean;
constructor(options?: CloudLayerLike);
set(options?: CloudLayerLike): this;
clone(): CloudLayer;
copy(other: CloudLayer): this;
}
export {};