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 and professional software engineer. Lets make something awesome together!