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

Depth sorting with render queues

In order for us to truly understand transparency, we need to take a look at depth sorting or in simpler terms, the drawing order of objects. Unity allows us to control the order in which a particular object is drawn to the screen, so we can have a greater control of which objects render over other objects. You can think of the drawing order as being very similar to layers in Photoshop. Drawing order is especially important when dealing with transparency or elements such as user interface objects.

This recipe is going to start to reveal how you can utilize this layered approach to rendering your objects, using built-in tags provided to us by Unity. This is very important as you will gain a greater amount of control ...

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