Chapter 8. Using Noise in Shaders
In this chapter, we will cover:
- Creating a noise texture using GLM
- Creating a seamless noise texture
- Creating a cloud-like effect
- Creating a wood-grain effect
- Creating a disintegration effect
- Creating a paint-spatter effect
- Creating a night-vision effect
Introduction
It's easy to use shaders to create a smooth-looking surface, but that is not always the desired goal. If we want to create realistic-looking objects, we need to simulate the imperfections of real surfaces. That includes things such as scratches, rust, dents, and erosion. It is somewhat surprising how challenging it can be to make surfaces look like they have really been subjected to these natural processes. Similarly, we sometimes want to represent natural surfaces such as wood grain or natural phenomena such as clouds to be as realistic as possible without giving the impression of being synthetic or exhibiting a repetitive pattern or structure.
Most effects or patterns in nature exhibit...