1 | use crate::{scalar, shaders, ISize, Shader}; |
2 | |
3 | pub fn fractal_noise( |
4 | base_frequency: (scalar, scalar), |
5 | num_octaves: usize, |
6 | seed: scalar, |
7 | tile_size: impl Into<Option<ISize>>, |
8 | ) -> Option<Shader> { |
9 | shaders::fractal_noise(base_frequency, num_octaves, seed, tile_size) |
10 | } |
11 | |
12 | pub fn turbulence( |
13 | base_frequency: (scalar, scalar), |
14 | num_octaves: usize, |
15 | seed: scalar, |
16 | tile_size: impl Into<Option<ISize>>, |
17 | ) -> Option<Shader> { |
18 | shaders::turbulence(base_frequency, num_octaves, seed, tile_size) |
19 | } |
20 | |