Mercurial > hg > dmlib
comparison src/dmperlin.c @ 2578:45ab96eb8daa
Cleanup a comment.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 12 Mar 2022 02:42:25 +0200 |
parents | 04c035342960 |
children | e716a2f18da0 |
comparison
equal
deleted
inserted
replaced
2577:04c035342960 | 2578:45ab96eb8daa |
---|---|
111 | 111 |
112 return DMERR_OK; | 112 return DMERR_OK; |
113 } | 113 } |
114 | 114 |
115 | 115 |
116 /* Harmonic summing functions - PDB | 116 /* Harmonic summing function |
117 * In what follows "alpha" is the weight when the sum is formed. | 117 * In what follows "alpha" is the weight when the sum is formed. |
118 * Typically it is 2, As this approaches 1 the function is noisier. | 118 * Typically it is 2, as this approaches 1 the function is noisier. |
119 * "beta" is the harmonic scaling/spacing, typically 2. | 119 * "beta" is the harmonic scaling/spacing, typically 2. |
120 */ | 120 */ |
121 DMFloat dmPerlinNoise2D(const DMPerlinContext *ctx, DMFloat x, DMFloat y, DMFloat alpha, DMFloat beta, int n) | 121 DMFloat dmPerlinNoise2D(const DMPerlinContext *ctx, DMFloat x, DMFloat y, DMFloat alpha, DMFloat beta, int n) |
122 { | 122 { |
123 DMFloat val, sum = 0; | 123 DMFloat val, sum = 0; |