@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
28 lines • 860 B
TypeScript
import type { TgdCodeFunctions } from "../shader";
/**
* Fractional Brownian Motion.
*
* @param options
* - `octaves`: Number of octaves (default to 8).
* - `noise`: Name of the noise function to use. It must use the same `type` (default to "perlinNoise").
* - `G`: You can define a value here and the function won't have it as argument. The one often used is 0.5.
*
* @see https://iquilezles.org/articles/fbm/
*/
export declare function tgdCodeFunction_fbm(options?: Partial<{
name: string;
octaves: number;
noise: string;
G: number;
}>): TgdCodeFunctions;
/**
* ```ts
* float perlinNoise( in vec2 p );
* float perlinNoise( in vec3 p );
* float perlinNoise( in vec4 p );
* ```
*/
export declare function tgdCodeFunction_perlinNoise(options?: Partial<{
name: string;
}>): TgdCodeFunctions;
//# sourceMappingURL=noise.d.ts.map