Skip to content

A toolkit for configuring the depth buffer in VRChat worlds with Udon

License

Notifications You must be signed in to change notification settings

Varneon/VUdon-DepthBufferToolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VUdon - Depth Buffer Toolkit GitHub GitHub Repo stars GitHub all releases GitHub tag (latest SemVer)

A toolkit for configuring the depth buffer in VRChat worlds with Udon

Usage

  1. Navigate to Varneon > VUdon > DepthBufferToolkit > Add Runtime Activator To Scene

image

  1. Click Add all cameras from the current scene and Add all mirrors from the current scene depending on which ones you want to enable the depth buffer on

image

  1. 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 frame
  • Other Cameras: Directly set the DepthTextureMode property of the camera to Depth
  • Mirrors: 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

  1. Download com.varneon.vudon.depth-buffer-toolkit.zip from here
  2. Unpack the .zip somewhere
  3. In VRChat Creator Companion, navigate to Settings > User Packages > Add
  4. Navigate to the unpacked folder, com.varneon.vudon.depth-buffer-toolkit and click Select Folder
  5. VUdon - Depth Buffer Toolkit should now be visible under Local User Packages in the project view in VRChat Creator Companion
  6. Click Add
  1. In the Unity toolbar, select Window > Package Manager > [+] > Add package from git URL...
  2. Paste the following link: https://github.com/Varneon/VUdon-DepthBufferToolkit.git?path=/Packages/com.varneon.vudon.depth-buffer-toolkit

Import from Unitypackage:

  1. Download latest com.varneon.vudon.depth-buffer-toolkit.unitypackage from here
  2. Import the downloaded .unitypackage into your Unity project