VUdon - Depth Buffer Toolkit [](https://github.com/Varneon/VUdon-DepthBufferToolkit/blob/main/LICENSE) [](https://github.com/Varneon/VUdon-DepthBufferToolkit/stargazers) [](https://github.com/Varneon/VUdon-DepthBufferToolkit/releases) [](https://github.com/Varneon/VUdon-DepthBufferToolkit/releases/latest)
October 6, 2022 ยท View on GitHub
VUdon - Depth Buffer Toolkit

A toolkit for configuring the depth buffer in VRChat worlds with Udon
Usage
- Navigate to
Varneon>VUdon>DepthBufferToolkit>Add Runtime Activator To Scene
- Click
Add all cameras from the current sceneandAdd all mirrors from the current scenedepending on which ones you want to enable the depth buffer on
- Depth Buffer Activator will now activate the depth buffer on the objects using the following methods:
Main Camera: Temporary Post-process Volume with DoF on the first frameOther Cameras: Directly set the DepthTextureMode property of the camera to DepthMirrors: Attach MirrorDepthBufferActivator component during build, which finds the internal camera of the mirror when it's rendered for the first frame, then set the DepthTextureMode property of the internal camera to Depth
Installation
Import with VRChat Creator Companion:
- Download
com.varneon.vudon.depth-buffer-toolkit.zipfrom here- Unpack the .zip somewhere
- In VRChat Creator Companion, navigate to
Settings>User Packages>Add- Navigate to the unpacked folder,
com.varneon.vudon.depth-buffer-toolkitand clickSelect FolderVUdon - Depth Buffer Toolkitshould now be visible underLocal User Packagesin the project view in VRChat Creator Companion- Click
Add
Import with Unity Package Manager (git):
- In the Unity toolbar, select
Window>Package Manager>[+]>Add package from git URL...- Paste the following link:
https://github.com/Varneon/VUdon-DepthBufferToolkit.git?path=/Packages/com.varneon.vudon.depth-buffer-toolkit
Import from Unitypackage:
- Download latest
com.varneon.vudon.depth-buffer-toolkit.unitypackagefrom here- Import the downloaded .unitypackage into your Unity project

