Jump to content

Simplex Noise


havenphillip

1,200 views

 Share

I don't deal with noise shaders that much but there are a lot of examples on Shadertoy. It has a lot of uses depending on what you want, but very often I see noise being used with raymarching to create 3D scenes. I prefer using textures because I can get what I want out of them and noise is a lot of math (noise shaders can get very large very quickly), but I figured a good shader series ought to have a noise function somewhere.

 

I got this noise from iq of Shadertoy fame. Just a nice little simplex noise:

noise.thumb.jpg.58c2561438f3f9b57607cb86b70e401c.jpg

30_noise.zip

 

You can make a mask out of your noise and mix two textures:

1521554368_noisemask.thumb.jpg.9270d5b2416d4bff80f1b5c5b7eda4ee.jpg

31_noise mask.zip

 

Here's a simple hash function:

glitchy.thumb.jpg.38db901072bc8d50a52c5ed292ef4ca5.jpg

32_glitchy console.zip

 

At this point I've almost got all 52 shaders. I may slow down a bit until I know I can plot the rest of the way. Just want to make sure I've got them right before I post them.

 

Happy shading!

 

Next: Vertex Displacement...

 

 

  • Like 1
 Share

2 Comments


Recommended Comments

Does the noise shader produce different results outside the range of (0,1)? It would be interesting to see two textures mixed with random noise across a large surface with no repetition.

  • Like 1
Link to comment

I think so. I set the mask size to 0.1 and  I don't think I'm seeing any repetition.

norepetition.thumb.jpg.34aa31dd2e7fe240c8ab48e2913b79fb.jpg

 

At ground level it looks good. The textures themselves repeat.

groundlevel.thumb.jpg.2b82dd45656974f143d6fafbfe7ab434.jpg

 

 

 


 

  • Like 2
  • Upvote 1
Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...