Visual Effect Graph

The Depthkit Studio VFX package can be used with your preferred Scriptable Render Pipeline.

In this page

Depthkit Studio + Visual Effect Graph →
Depthkit Core + Visual Effect Graph →


Depthkit Studio + Visual Effect Graph

  1. Create a new project via the Unity Hub, using the Universal Render Pipeline template.
1276
  1. In the Package Manager window, click the add icon and select Add package from disk.
517
  1. Locate the depthkit.core package folder. Within this folder, select the package.json file and click open.

  2. Repeat this step for the depthkit.studio and the depthkit.studio.vfx packages.

  3. Once imported, you will see the addition of Depthkit Studio VFX Graph within the Package Manager. Select this item and expand the Samples toggle. Import the Depthkit Studio VFX Prefab. This will import a Depthkit clip prefab with an example VFX Look to get you up and running with the VFX Graph immediately.

1158
  1. In the Project window, go to your Assets folder and locate the prefab you just imported under Samples → Depthkit Studio VFX Graph → 0.1.2 → Prefabs - Depthkit Studio VFX. Select the Depthkit Clip + Studio VFX Look and drag it into the Hierarchy to populate your scene.
800
  1. Back in the Project window, create a new folder under Assets. You can do this by right clicking in the Project window and selecting Create → Folder. I like to name this folder Clips. This will hold your Depthkit video files, metadata text files, and optional poster images. Drag your Depthkit assets into this folder in the Project window or copy and paste in the explorer window.

  2. Back in the Hierarchy, select your recently created Depthkit clip. See the Inspector. You will notice that the Depthkit Clip component is alerting you that your Depthkit Clip is not set up. No worries! All we need to do is drag the Depthkit metadata file and poster image to the corresponding fields in the Depthkit Clip component. In the Video player component, drag the Depthkit video to the Video Clip field.

800
  1. Once your Depthkit clip is set up, you will see that the clip is already configured with a Depthkit VFX Example Look in the Visual Effect component. In order to create and apply a custom VFX Look, you will need to create a new Depthkit VFX Look. You can do this by right clicking in the Project tab, select Create → Visual Effects → Depthkit VFX Look. This will generate MyVFXLook, a new Look that is already set up to work with the Depthkit clip.
2011
  1. Double click this new Look to launch the VFX Graph workspace. This node graph provides complete creative control to design a custom visual effect Look for Depthkit.
3840
  1. To get started with this Look immediately, select your Depthkit clip in the Hierarchy, go to the inspector, and in the Visual Effect component, update the Asset Template in order to replace the Depthkit VFX Example Look with your new Look.
800

Now you can continue to tweak your custom Look in the VFX Graph and see these changes applied to your Depthkit clip. To see these updates immediately, ensure you have Auto selected in the upper left corner of the VFX Graph window.

📘

Depthkit VFX Looks are easily sharable.

If you have a unique Look already created for another Depthkit (Core or Studio clip) in a different project, you can simply import the VFX file into your current project and apply it to your clip of choice.

Depthkit Core + Visual Effect Graph

  1. Let’s start by creating a Depthkit clip prefab that is already set up with a Shader Graph Look in our scene. In the Project window, go to your Assets folder and locate the prefab you just imported under Samples → Depthkit Core Shader Graph → 0.1.1 → Prefabs - Depthkit Core Shader Graph. Select the Depthkit Clip + Core Shader Graph Look and drag it into the Hierarchy to populate your scene.

  2. In the Inspector, you will notice that the Depthkit Clip component is alerting you that your Depthkit Clip is not set up. No worries! All we need to do is drag the Depthkit metadata file and poster image to the corresponding fields in the Depthkit Clip component. In the Video player component, drag the Depthkit video to the Video Clip field.

  3. Once your Depthkit clip is set up, you will see that the clip is already configured with an example Core Shader Graph Look assigned in the Mesh Renderer component. In order to create and apply a custom Shader Graph Look, we will need to create a new Depthkit shader and material. You can do this by right clicking in the Project tab, select Create → Shader → Depthkit → Core Look - Shader Graph.

3028
  1. This will generate MyCoreLook, a new shader that is already set up to work with the Depthkit clip. Feel free to rename this file.

  2. Right click the new shader. Select Create → Material.

3024
  1. Select your Depthkit clip in the Hierarchy and see the inspector. In the Mesh Renderer component, under materials, replace the example Depthkit Core Photo Look Unlit with your new Material.
951
  1. Now we are ready to build the custom Shader Graph Look and see it applied to our Depthkit clip. Double click this shader to launch the Shader Editor.
3031
  1. At this point, you can design your own advanced Look. For this guide, I’ve simply blended a fresnel effect to the color input of the shader in order to add a subtle glow to my clip.
3031

I’ve also changed the Normal Generation Technique to Adjustable. Find this under Relighting (Experimental) in the Depthkit Core Mesh Source component.

954
  1. You can also add a VFX Look to the same clip. Back in the Hierarchy, select your clip and go to the Component menu. Select Depthkit → Core → VFX → Depthkit VFX Look. This will add the visual effect components to your Depthkit clip. It will also assign a Depthkit VFX Example Look to the clip.
2068
  1. In order to create and apply your own VFX Look, you will need to create a new Depthkit VFX Look. You can do this by right clicking in the Project tab, select Create → Visual Effects → Depthkit VFX Look. This will generate MyVFXLook. Feel free to rename this file.
3031
  1. Select your Depthkit clip in the Hierarchy and see the inspector. In the Visual Effect component, update the Asset Template in order to replace the Depthkit VFX Example Look with your new Look.
3031
  1. Back in the Project tab, double click this new Look to launch the VFX Graph workspace.
3031
  1. In the node graph, you have complete creative control to design and customize your VFX Look. To see your design applied to your Depthkit clip immediately, select Auto in the upper left corner of the VFX Graph editor. For this guide, I’ve simply converted the Look output to a point to apply a particle cloud effect. Note that since we have already created and applied a Shader Graph Look, my point output will appear on top of the existing Shader Look. In this case, we can see a point cloud being generated on top of the subtle fresnel effect generated with the Shader Graph.
3031

If at any point you want to view the VFX or Shader Graph Look by itself, you can disable either of the Depthkit Core Shader Graph Look or Depthkit VFX Look components and click play.

At this point, you can continue to build and customize both the Shader Graph and VFX Look to your heart’s content.

537