Skip to content

Commit aea5057

Browse files
authored
Merge pull request Reputeless#7 from cmanton/master
Add Makefile for clang and update example
2 parents da5f4db + f5cab25 commit aea5057

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CC=clang
2+
3+
.PHONY: clean
4+
5+
example: example.cpp
6+
$(CC) -std=c++17 $^ -o $@ -lm -lstdc++
7+
8+
clean:
9+
rm -rf example

example.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,20 +151,20 @@ void Test()
151151
perlinA.serialize(state);
152152
perlinB.deserialize(state);
153153

154-
assert(perlinA.octaveNoise(0.1, 0.2, 0.3, 4)
155-
== perlinB.octaveNoise(0.1, 0.2, 0.3, 4));
154+
assert(perlinA.accumulatedOctaveNoise3D(0.1, 0.2, 0.3, 4)
155+
== perlinB.accumulatedOctaveNoise3D(0.1, 0.2, 0.3, 4));
156156

157157
perlinA.reseed(1234);
158158
perlinB.reseed(1234);
159159

160-
assert(perlinA.octaveNoise(0.1, 0.2, 0.3, 4)
161-
== perlinB.octaveNoise(0.1, 0.2, 0.3, 4));
160+
assert(perlinA.accumulatedOctaveNoise3D(0.1, 0.2, 0.3, 4)
161+
== perlinB.accumulatedOctaveNoise3D(0.1, 0.2, 0.3, 4));
162162

163163
perlinA.reseed(std::mt19937{ 1234 });
164164
perlinB.reseed(std::mt19937{ 1234 });
165165

166-
assert(perlinA.octaveNoise(0.1, 0.2, 0.3, 4)
167-
== perlinB.octaveNoise(0.1, 0.2, 0.3, 4));
166+
assert(perlinA.accumulatedOctaveNoise3D(0.1, 0.2, 0.3, 4)
167+
== perlinB.accumulatedOctaveNoise3D(0.1, 0.2, 0.3, 4));
168168
}
169169

170170
int main()

0 commit comments

Comments
 (0)