Skip to content

Commit

Permalink
Adjust the phase
Browse files Browse the repository at this point in the history
  • Loading branch information
Slowyn committed Sep 10, 2024
1 parent 42ec7e0 commit 785849e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Texture/Perlin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ instance Show NoiseTexture where
show _ = "Noise Texture"

instance Texture NoiseTexture where
value (NoiseTexture perlin scale) _u _v point = fromXYZ (1, 1, 1) .^ turbulence perlin point 7
value (NoiseTexture perlin scale) _u _v point = fromXYZ (0.5, 0.5, 0.5) .^ (1 + sin (scale * z point + 10 * turbulence perlin point 7))

mkNoiseTexture :: (StatefulGen g m, PrimMonad m) => Double -> g -> m NoiseTexture
mkNoiseTexture scale gen = do
Expand Down
Binary file modified test.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 785849e

Please sign in to comment.