@takram/three-clouds
Version:
A Three.js and R3F implementation of geospatial volumetric clouds
22 lines (18 loc) • 592 B
text/typescript
import { resolveIncludes } from '@takram/three-geospatial'
import { math } from '@takram/three-geospatial/shaders'
import { ProceduralTextureBase } from './ProceduralTexture'
import fragmentShader from './shaders/localWeather.frag?raw'
import perlin from './shaders/perlin.glsl?raw'
import tileableNoise from './shaders/tileableNoise.glsl?raw'
export class LocalWeather extends ProceduralTextureBase {
constructor() {
super({
size: 512,
fragmentShader: resolveIncludes(fragmentShader, {
core: { math },
perlin,
tileableNoise
})
})
}
}