Skip to content

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Oct 10, 2022
1 parent 111eeeb commit fb9e118
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Dfile.encoding=UTF-8
projGroupId=io.github.over-run
projArtifactId=perlinoisej
projName=perlinoisej
projVersion=0.2.0
projVersion=0.3.0
projDesc=Java implementation for STB perlin noise
projVcs=Over-Run/perlinoisej
projBranch=0.x
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/io/github/overrun/perlinoisej/PerlinNoise.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private static float noise3internal(float x, float y, float z, int x_wrap, int y
z -= pz;
w = (((z * 6 - 15) * z + 10) * z * z * z);

int seed_i = seed & 0xff;
final int seed_i = seed & 0xff;
r0 = RANDTAB[x0 + seed_i] & 0xff;
r1 = RANDTAB[x1 + seed_i] & 0xff;

Expand Down Expand Up @@ -320,10 +320,11 @@ public static float noise3wrapNonpow2(float x, float y, float z, int x_wrap, int
z -= pz;
w = (((z * 6 - 15) * z + 10) * z * z * z);

final int seed_i = seed & 0xff;
r0 = RANDTAB[x0] & 0xff;
r0 = RANDTAB[r0 + seed] & 0xff;
r0 = RANDTAB[r0 + seed_i] & 0xff;
r1 = RANDTAB[x1] & 0xff;
r1 = RANDTAB[r1 + seed] & 0xff;
r1 = RANDTAB[r1 + seed_i] & 0xff;

r00 = RANDTAB[r0 + y0] & 0xff;
r01 = RANDTAB[r0 + y1] & 0xff;
Expand Down

0 comments on commit fb9e118

Please sign in to comment.