-
Book Overview & Buying
-
Table Of Contents
Unity 6 Shaders and Effects Cookbook - Fifth Edition
By :
While previous chapters have explored the use of transparency to create effects where objects appear partially see-through, this approach doesn’t allow for the modification of what is seen through the transparent areas. In other words, transparency alone merely reveals the scene behind an object but doesn’t alter or distort it in any way. To go beyond simple transparency and create more complex visual effects—such as bending, distorting, or otherwise interacting with the background—a more advanced technique is required. This is where the grab pass comes into play.
The grab pass is a powerful technique traditionally used in shader programming to create effects that require knowledge of the scene behind a particular object, such as transparency, refraction, or other complex visual interactions. This technique captures the pixels of the scene that have already been rendered, allowing them to be reused within a shader to simulate how light...