Skip to content

Latest commit

 

History

History
27 lines (12 loc) · 1.01 KB

unityShaderEffectCookbook4.md

File metadata and controls

27 lines (12 loc) · 1.01 KB

...menustart

...menuend

4. Reflecting Your World

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 to look at different ways in which we can use these generated Cubemaps to create re ection effects in our Shaders.

This is great for simulating metal, car paint, and even plastics. So in this chapter we are going to learn the following:

Creating Cubemaps in Unity3D