Skip to content

Commit

Permalink
refactor(shaders): minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ms0g committed Oct 1, 2024
1 parent 8969828 commit 65dd307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shaders/terrain.frag
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ float remap(float v, float inMin, float inMax, float outMin, float outMax) {
}

float random(vec2 p) {
p = 50.0 * fract(p*0.318 + vec2(0.71, 0.113));
return -1.0 + 2.0*fract(p.x*p.y*(p.x + p.y));
p = 50.0 * fract(p * 0.318 + vec2(0.71, 0.113));
return -1.0 + 2.0 * fract(p.x * p.y * (p.x + p.y));
}

float noise(vec2 p) {
Expand Down

0 comments on commit 65dd307

Please sign in to comment.