Unity Shader Graph Introduction - Basic Shader Graph Tutorial

Описание к видео Unity Shader Graph Introduction - Basic Shader Graph Tutorial

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.

My written introduction to shader graph is here: https://gamedevbill.com/shader-series... That tutorial introduces shader graph, but does not do the exact same demo. If you would like me to write up this exact demo, please let me know in the comments.

For some basics on what a shader is, check out: https://gamedevbill.com/shader-series...

Assets used: (Free) Medieval Pixel Art https://assetstore.unity.com/packages...

**** 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

Комментарии

Информация по комментариям в разработке