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

Creating a simple dynamic Cubemap system

We have learned a lot of great information so far, but our reflections don't really reflect the proper world as an object moves around the environment. For example, if you have an environment composed of multiple rooms and hallways, we couldn't bake out a Cubemap for the whole level and put it in a single Cubemap. That wouldn't reflect the proper environment from room to room. We would get a very static, uninteresting reflection.

There are a couple ways in which this can be solved such that the reflection of one room is different than that of the second room. The first and most basic way is to swap the Cubemap based off of positions in the rooms. So as you move from room to room, the Cubemap would swap out ...

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