Body Normals and Depth
This guide explains how to use built-in Body Depth and Body Normal textures to relight, occlude, and make objects collide with the body. This guide is a great way to learn about using Graph materials to create various effects.
The Body Depth Texture provides information about the distance (in centimeters) from the camera to each pixel of the body. The Body Normal Texture represents the surface direction of each pixel of the body. There is no additional performance cost to using both at the same time.
There are multiple ways to get depth and normals within Lens Studio, depending on what you’re trying to do. The Body Normal and Depth Textures should not be confused with the Depth Render Target which exposes the Depth buffer of virtual objects in the Camera.
Examples
Examples described in this guide are available in Lens Studio Asset Library with names: Body Normals And Depth 2D, Body Normals - Arrows, Body Normals and Depth - Cartoon Water Pool and Body Normals and Depth - Water Ripples