VUdon - Depth Buffer Toolkit
A toolkit for configuring the depth buffer in VRChat worlds with Udon
- Navigate to
Varneon
>VUdon
>DepthBufferToolkit
>Add Runtime Activator To Scene
- Click
Add all cameras from the current scene
andAdd all mirrors from the current scene
depending 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
Import with VRChat Creator Companion:
Import with VRChat Creator Companion:
- Download
com.varneon.vudon.depth-buffer-toolkit.zip
from 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-toolkit
and clickSelect Folder
VUdon - Depth Buffer Toolkit
should now be visible underLocal User Packages
in the project view in VRChat Creator Companion- Click
Add
Import with Unity Package Manager (git):
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:
Import from Unitypackage:
- Download latest
com.varneon.vudon.depth-buffer-toolkit.unitypackage
from here- Import the downloaded .unitypackage into your Unity project