O'Reilly logo

Unity Shaders and Effects Cookbook by Kenny Lammers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cloth shading

Cloth is another very common shading task that needs to be achieved in the process of making games or shading real-time interactive experiences. It involves understanding how the fibers of the cloth disperse the lighting over the surface to produce the look of cloth. It is also very view-dependent and so we will look at some new tricks we can employ to fake the effects of light glancing over the surface of the cloth, and the tiny fibers producing a very distinctive rim lighting effect.

This Shader will introduce us to the concept of detail normal maps and detail textures. By combining two normal maps together, we can actually achieve a higher level of detail that you could store in a 2048 x 2048 texture. This technique will help us ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required