This algorithm utilized a 3D Perlin noise function provided from the OpenGL Orange Book. This noise function created a 3D noise texture which can be passed into the GLSL shader. The shader than uses the current execution time of the OpenGL program as an offset for the texture lookup. As a result this creates a very smooth animation as clouds appear to drift, shrink, grow, or even disappear. While this algorithm was very simple it's result created a very visually appealing cloud animation.
Animated noise based cloud shader.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters