I know this code is bad, it was not meant to be release but i did anyway.
Experimental volumetric clouds in ThreeJS following "Nubis, Evolved" and associated work by Guerrilla Games.
Current implementation is based on the "Envelope Model" described in the presentation. It implements the following:
- Envelope generation
- 3D texture of Perlin-worley noise
- Envelope erosion
- Ray marching using adaptive sampling
- Lighting model with Multiscattering and Anisotropic phase function
THIS IS NOT A FULL IMPLEMENTATION and not intended for production use. It is a work in progress and may be abandoned at any time. It is as far as I got in a couple months of work. I may or may not continue working on it in the future.