GLSL

GerstnerWave

Simplex Noise provider.

Methods

# inner gln_GerstnerWave(p, opts, dt)

Implimentation of Gerstner Wave Based on: https://catlikecoding.com/unity/tutorials/flow/waves/
Parameters:
Name Type Description
p vec3 Point to sample Gerstner Waves at.
opts gln_tGerstnerWaveOpts
dt float
Example
float n = gln_perlin(position.xy);

Type Definitions

struct

# gln_tGerstnerWaveOpts

Options for Gerstner Wave generators.
Properties:
Name Type Description
direction vec2 Direction of the wave
steepness float Steepness of the peeks
wavelength float Wavelength of the waves