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

Chapter 4. Reflecting Your World

Reflection is key nowadays to make your Shaders really punch from a visual standpoint. It is the process of using the world around you and letting the Shader reflect that world's information to simulate the environment reflecting on the surface of the Shader. This is in part because we are able to use a new kind of texture called a Cubemap. This type of texture is made up of six textures and uses these six textures to surround the current surface in a cube-like fashion. So imagine a cube and each face of that cube has one of the six textures on the face of it. This allows us to capture our environment and bake it into textures.

We will see how to generate our own Cubemaps from our own environments, and we are going ...

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