Using noise in shaders (texture blending)

preview_player
Показать описание
0:00 Intro
0:30 What is noise?
1:48 Setup
3:23 Vertex Shader
3:50 Reading textures
4:27 Blending with mix
5:01 Reading noise values
5:39 Controlling the noise
7:07 Scaling the noise
7:58 Conclusion

Code from this video:

Examples used:

More resources on noise:

Textures used in this video:

Noise textures give programmers a way to introduce random and organic elements into their effects. In this video I'll show you how you can use noise textures in a shader to create a simple texture blending effect.
There are so many ways that you can use noise to create awesome looking visuals, so hopefully you find this video useful and pick up a few tricks!

Follow me:

#glsl #p5js #shaders
Рекомендации по теме
Комментарии
Автор

If you'd like to see what else I'm working on, it would be great if you could wishlist my game Star Mining Co. on Steam! s.team/a/2584800/

What shader effect would you like to see next?

BarneyCodes
Автор

Barney at it again!!! 🎉

Wow I used to think generating noise in code is more efficient. But using a texture for it comes as a surprise man. Thanks :)

theman
Автор

Really great explanation. I love the way you go through this, showing all the code changes and variants! Top notch editing. Thanks man!

DeniseNepraunig
Автор

0:08 it looks like a shader that replicates how cells look like. Every "cell" (circle) is separated from adjacent circles but all of them are together, on a similar way how skin cells would be (or any kind of large cell structure really)

openlink
Автор

Thanks for the video. Really well explained.
3:38 The thing with p5.js is that the coordinates 0, 0 are located in the top left corner instead of the bottom left.

tepiku