glsl-waves
Version:
Generate waves in 1d or 2d
51 lines (36 loc) • 1.09 kB
Markdown
Generate waves in 1D or 2D. Great for video synthesis type of visuals where you combine functions and use them for color generation and displacement.
Install the package:
```
npm i -s glsl-waves
```
or
```
yarn add glsl-waves
```
Examples:
1d waves:
2d waves:
``` glsl
// Use any of the following:
void main() {
// add example here
}
```
SmoothSquare has an optional additional smoothness paramenter:
1d:
2d:
``` glsl
void main() {
// add example here
}
```