Skip to content

Commit 4e7ee2c

Browse files
authored
Merge pull request #57 from PieKing1215/fix-fbm-4d
Fix fbm_4d/fbm_4d_offset only using 3 dimensions
2 parents d983c21 + 6eebdd3 commit 4e7ee2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/noise_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl NoiseBuilder {
156156
}
157157

158158
pub fn fbm_4d(width: usize, height: usize, depth: usize, time: usize) -> FbmSettings {
159-
let mut dim = NoiseDimensions::default(3);
159+
let mut dim = NoiseDimensions::default(4);
160160
dim.width = width;
161161
dim.height = height;
162162
dim.depth = depth;
@@ -174,7 +174,7 @@ impl NoiseBuilder {
174174
w_offset: f32,
175175
time: usize,
176176
) -> FbmSettings {
177-
let mut dim = NoiseDimensions::default(3);
177+
let mut dim = NoiseDimensions::default(4);
178178
dim.width = width;
179179
dim.height = height;
180180
dim.depth = depth;

0 commit comments

Comments
 (0)