Shader Graph: Learn with Feature Examples | Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
the feature examples sample is a collection of over 30 Shader graph files each file demonstrates a specific Shader technique such as angle blending tripler projection Parallax mapping and custom lighting while you won't use these shaders directly in your project you can use them to quickly learn and understand the various techniques and recreate them in your own work each file contains notes that describe what the Shader is doing and most of the shaders are set up with the core functionality contained in a subgraph so it's easy to copy and paste directly into your own Shader the sample also has extensive documentation describing each of the samples to help you learn after importing the sample said you can quickly and easily browse the samples by opening the scene that corresponds to the render pipeline you're using I'm using urp so I'll open the urp feature examples scene file this scene contains all of the samples in the set with a description of each you can take a guided tour of the scene by selecting the Shader graph feature sample showcase item at the top of the hierarchy list now open the tour content in a new window with this button here you'll see a description of the sample you're currently viewing and you can jump to the sample you want to see by selecting it using the drop-down menu I'm interested in flow mapping so I'll select that option here we can see a simple example of flow mapping in action if I want to open the Shader I can just click this link here at the top and and now I can see exactly how the effect is set up notice that the sample Shader is full of comments describing exactly how it works the bulk of the effect is achieved using these two subgraphs UV flow map and flow map time if you want to use the flow mapping effect in your own project it's simple to just copy and paste these nodes right into your own Shader notice that it looks like the sample is strobing in and out out this is a pretty common artifact of flow mapping and it's mentioned here in the description if I click on the link to the material in the guide the material is selected here and I can change the temporal mode setting from time only to flow map time now the strobing effect is gone and the motion appears more continuous many of the other samples also have interactive settings that you can change and see the results instantly let's take a look at a couple more examples this set of samples shows how to create blending masks on altitude camera distance and surface angle and here's a sample that shows how to create Parallax mapping if we select the material we can even use the drop down to switch between normal mapping Parallax mapping and Parallax occlusion mapping to compare these effects in this example we show how to customize the lighting model in urp so you can use Shader graph to not only control what the surface looks like but exactly how the lighting behaves including diffuse and specular ambient lighting Reflections and even fog this first example shows how to create a PBR Shader we also include an example of a simplified lighting model for when performance is critical and for good measure we threw in a Cell Shader as well all of these can be customized and tuned to achieve exactly the look and performance level you're going for there are dozens more examples here we've barely scratched the surface import this sample set today and take a look for yourself the feature example set sample is available in 2022 LTS and unity 6 to import the samples open the package manager and select the Shader graph package then select the samples tab on the samples tab press the import button on the feature examples sample set once imported you can find the samples under the samples Shader graph and your version number and then feature examples the sample assets are divided into categories the quickest way to explore them is to open them in a scene select the scenes folder and open the scene that corresponds to the render pipeline you're using in your project with the scene open now you can see all the samples and explore them using the sample showcase we hope you enjoy this new set of samples share your thoughts and comments with us in the Shader graph forum
Info
Channel: Unity
Views: 12,265
Rating: undefined out of 5
Keywords: Unity3d, Unity, Unity Technologies, Games, Game Development, Game Dev, Game Engine
Id: 7Rqrk8hMooU
Channel Id: undefined
Length: 5min 31sec (331 seconds)
Published: Fri Mar 15 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.