This page looks best with JavaScript enabled

The Most Complicated Nothing Shader - Unity 3D Grab Pass

 ·   ·  ☕ 1 min read

Grab Passes are a really complicated and expensive way to do nothing in a shader. A Grab Pass is an additional pass added to your shader that captures the scene and allows you to use that captured texture in your shader. Want to make refraction’s in glass or an energy shield? This is a good way to do that.

Unity has examples on how to do this using a vertex and fragment shader. We’re going to explore how to do this using a vertex and surface shader.

More info about Unity’s Grab Pass:
https://docs.unity3d.com/Manual/SL-GrabPass.html

Some discussions from the Unity Forum about using the Unity Grab Pass in a Surface Shader:
https://forum.unity.com/threads/unity3-surface-shader-grabpass.56098/

Discord: https://discord.gg/hU5Kq2u


Sam Wronski
WRITTEN BY
Sam Wronski
Maker of things, currently helping build cloud things @ Microsoft. World of Zero is a personal project disconnected from my professional work. Lets make something awesome together!