Unity Shader Graph
Introduction
What is a Shader:
A shader is a program that runs on the GPU
What can you do with shaders?
Simulating the physic of light
Vertex displacement
Color agining
Scrolling textures
Graphics APIs
OpenGL
DirectX
Vulkan
Metal
Types of Shaders
Vertex Shader:
Runs on every vertex in the model.
Common uses: vertex displacement, eg wind simulation
Fragment Shader:
Runs on every possible pixel in the rendered image.
Common uses: light simulation, post processing effects.
GPU
Rendering Time: 16ms for 60 FPS
The GPU executes the shader on all vertices (or pixels) at the same time (In parallel)
The parallel computation capabilities of the GPU are what makes modern games possible.
Shader Creation
Using code
Node based
Shader Forge
Amplify
Unity Shader Graph
Nodes Based Shader Editing
Blackboard holds properties
PBR Master - Represents the Unity Lighting system
Color Node
Property Node
References and Resources
https://www.youtube.com/watch?v=kA48uriRJQk&feature=youtu.be
Pluralsight:
https://app.pluralsight.com/course-player?clipId=f1895b3e-1773-4412-8d23-b774d3f483dc
https://magazine.renderosity.com/article/4803/creating-animated-materials-with-shader-graph-in-unity
https://www.raywenderlich.com/3744978-shader-graph-in-unity-for-beginners#toc-anchor-002
https://www.youtube.com/watch?v=e8_xy_Y6qyQ
https://www.youtube.com/watch?v=NsWNRLD-FEI
https://gamedevacademy.org/shader-graph-unity-tutorial/
https://www.udemy.com/course/introduction-to-shaders-in-unity3d-with-shader-graph/