filmov
tv
Unity Shader Graph Introduction - Basic Shader Graph Tutorial
![preview_player](https://i.ytimg.com/vi/FLVNfBQgeQc/maxresdefault.jpg)
Показать описание
An introduction to Unity's Shader Graph. This is the foundation for my shader tutorial playlist. I am using shader graph in the Universal Render Pipeline (or URP), but this demo will work in HDRP as well.
**** Update for Shader Graph 10.x
This video was made with Shader Graph 8.2
If you are using Shader Graph 10.x there are a couple key differences:
The create shader options have moved within a sub-menu called "Universal Render Pipeline, and some are renamed. So "Create--Shader--PBR graph" becomes "Create--Shader--Universal Render Pipeline--Lit Shader Graph"
The per-input settings that were in the blackboard are now in the "Graph Inspector" within the "Node Settings". You must have the input selected to see its settings in that window.
Some other settings that were on-node are now also in that Graph Inspector, though you can generally ignore these.
If you want to generate a code shader from the graph, you do so on the graph asset inspector (not on the master node as you did in 8.2). Now select the graph asset, and hit "View Generated Shader" button in its inspector.
****
I'll go a into how vertex shaders work in shader graph somewhat, but will focus on fragment shaders. My demo will take an image, make it black & white, color tint it blue, then make the yellow-ish parts stay their original yellow-ish. As a bonus at the end I show you how to flicker the yellow bits.
#ShaderGraph #Unity #Shader
**** Update for Shader Graph 10.x
This video was made with Shader Graph 8.2
If you are using Shader Graph 10.x there are a couple key differences:
The create shader options have moved within a sub-menu called "Universal Render Pipeline, and some are renamed. So "Create--Shader--PBR graph" becomes "Create--Shader--Universal Render Pipeline--Lit Shader Graph"
The per-input settings that were in the blackboard are now in the "Graph Inspector" within the "Node Settings". You must have the input selected to see its settings in that window.
Some other settings that were on-node are now also in that Graph Inspector, though you can generally ignore these.
If you want to generate a code shader from the graph, you do so on the graph asset inspector (not on the master node as you did in 8.2). Now select the graph asset, and hit "View Generated Shader" button in its inspector.
****
I'll go a into how vertex shaders work in shader graph somewhat, but will focus on fragment shaders. My demo will take an image, make it black & white, color tint it blue, then make the yellow-ish parts stay their original yellow-ish. As a bonus at the end I show you how to flicker the yellow bits.
#ShaderGraph #Unity #Shader
Комментарии