@takram/three-atmosphere
Version:
A Three.js and R3F implementation of Precomputed Atmospheric Scattering
31 lines (26 loc) • 519 B
text/typescript
import {
type DataArrayTexture,
type Matrix4,
type Texture,
type Vector2
} from 'three'
export interface AtmosphereOverlay {
map: Texture
}
export interface AtmosphereShadowLength {
map: Texture
}
export interface AtmosphereShadow {
map: DataArrayTexture
mapSize: Vector2
cascadeCount: number
intervals: Vector2[]
matrices: Matrix4[]
inverseMatrices: Matrix4[]
far: number
topHeight: number
}
export interface AtmosphereIrradianceMask {
map: Texture
channel: 'r' | 'g' | 'b' | 'a'
}