Mô tả

In this course we're going to look at Unity ShaderLab and the HLSL shading language to create amazing shaders.

Maybe you are

  • a developer struggling to bring to life a particular game feature because it needs a custom shader.

  • a developer who always wanted to create custom shaders but was too scared to start.

  • a developer wanting to add some custom post-processing effects to your 3d renders.

Unity ShaderLab is how you create custom shaders. It comes in 3 flavours, fixed function, vertex-fragment and surface shaders. We won't be looking at the fixed function route in this course as it is effectively a legacy option and you want to learn modern best practice. The code syntax is based on the C language, but fear not, we will assume you have literally no knowledge of this language at all and we will, as the course title states, learn this from scratch. A shader uses the GPU ( the Graphics Processing Unit) to handle multiple programs at the same time, so it is unbelievably fast.

We will start from really simple examples and progress slowly through each stage of developing a custom shader. You will be able to play with the shader code using Visual Studio, or another code editor if you prefer. You can experiment with different values to see the impact it has on the end result.

Unity shaders are split into vertex shaders and fragment shaders and we will focus initially on the fragment shader, working essentially in a 2d environment. With dozens of shaders in the course resources you will learn the language in gentle stages. Before moving on to use Unity's surface shader syntax to easily include complex lighting.

Once you're comfortable with simple shaders we will cover advanced effects such as tessellation, transparency, using the stencil buffer and post-processing.

Creating your own shaders means understanding the HLSL language and that is the aim of the course. You could search for a suitable shader on ShaderToy or ShaderFrog and then try to adapt the code. But without knowing the language you're going to find that difficult to do. To really be effective you need to know about the  language, shaping functions, tiling and lighting calculations. To do this you will need to follow along with the course and complete the many challenges suggested. At the end you will then be able to create any shader that you can imagine.


Now featuring sections on URP Shaders and Shader Graph


As usual there is a 30 day money back guarantee. So you have nothing to lose. Let's get shading today!


What students say about the course

"Great course. Took this as a refresher to get back into shaders. Everything you need is provided. Both starting scenes for each lecture and also completed ones if you get stuck with code errors. Nice learning curve. Everything is well explained. No long boring slideshows. Also plenty of challenges, which I like and find very useful in assisting your learning. Very clear audio and code. So no problems following along and plenty to take in. Also Nicholas is very helpful with your Q&A’s. Highly recommended."

"The information presented in this course is fantastic. The tutor has a great personality, and I can’t stress enough how enjoyable he makes this course."

"It is fantastic. You need a little bit of math to understand it better but with attention and repetition it will be easy to anyone. Thanks a lot professor!"

"Exceptional good structured step by step course. Background knowledge is provided on spot when necessary. Nik has a special encouraging attitude and he is fun to listen to. Thanks!"

"The best shaders instructor I've seen so far. His lessons are clear, practical, and the way he talks keeps the student motivated with the right amount of humour but without losing focus! I'm glad I've found this course."

"I would say that this was the best course I have bought on Udemy so far."

Bạn sẽ học được gì

The mysteries of writing Unity shaders

You will be gently introduced to how to approach the problem of creating a custom shader.

You will learn the full details of the HLSL shader language.

You will learn to use the Surface Shader syntax to add custom shaders on top of Unity lighting.

You will start with simple unlit 2D shaders and work up to advanced effects such as volumetric shaders and clipping.

Learn to create shaders that work with the Universal Render Pipeline (URP)

Learn to use Shader Graph to create your shaders

Yêu cầu

  • All you need is a copy of Unity, freely available for students.
  • A knowledge of the basics of using Unity is assumed, this is readily available by many online tutorials.
  • No knowledge of shaders is assumed.
  • A knowledge of a programming language would help but is not assumed.

Nội dung khoá học

14 sections

Introduction

5 lectures
Welcome to the course
04:03
Introduction
02:53
Parallel Processing
01:48
Cg is not C#
04:42
What have you learned?
4 questions

First Steps

6 lectures
Your first shader
09:28
Working with vectors in Cg
07:12
Using the Properties section
06:03
Blending colours
08:22
Using step and smoothstep
04:13
What have you learned?
5 questions

Shaping Functions

14 lectures
Drawing a circle
02:21
Drawing a square
10:10
Moving our shape
04:13
Moving the square with the mouse
04:25
Moving the shape over time
02:59
Rotating the square
08:06
Changing the rotation centre and scaling
06:28
Tiling
03:33
Drawing circles
05:57
Drawing lines
07:07
Combining lines
08:38
Showing a polygon
05:30
Creating a brick pattern
08:12
What have you learned?
7 questions

Noise

5 lectures
#pragmas
00:12
What’s all that noise?
03:30
Using noise to create a fire shader
06:06
Using noise to create wood and marble
04:02
What have you learned?
3 questions

Textures

4 lectures
A simple use of a texture image
07:18
Ripple the image
04:56
Blend between textures.
05:22
What have you learned?
3 questions

Vertex shaders

4 lectures
Turning a box into a sphere
04:11
Using the Unity lighting - Lambert
04:16
Creating a ball of lava
05:13
What have you learned?
3 questions

Surface Shaders

10 lectures
ShaderLab Surface Shaders - an introduction
05:01
Bump mapping
03:33
Fresnel shading
02:09
Environment mapping
02:55
Adding a bump map to a reflective surface
03:13
Blinn Phong lighting
04:31
Custom lighting
06:28
Standard lighting
04:23
Adding a vertex function to a surface shader
03:05
What have you learned?
7 questions

Advanced effects

7 lectures
Lighting in a vertex, fragment shader
05:33
A position location shader
04:29
Drawing a cross on the floor
00:19
Tessellation
06:23
Using the stencil buffer
06:27
Clipping the output
03:07
What have you learned?
5 questions

Transparent shaders

2 lectures
Alpha transparency in a surface shader
03:51
Space Pirate turns to glass
07:30

Volumetric Shaders

2 lectures
Volumetric Rendering
06:32
Using textures in the render
05:55

Post Processing

3 lectures
Preparing for post processing
05:06
Night goggles effect
03:30
What have you learned?
4 questions

URP Shaders

8 lectures
Migrating to URP
05:22
Converting a custom unlit shader to URP
09:21
Working with Properties and includes
08:12
More tips when updating shaders for URP
04:45
A Toon Shader
06:14
Using URP Lighting in a Shader
06:39
Post Processing using Renderer Features
06:56
Stencils
04:55

Shader Graph

5 lectures
A first example
07:40
Rim lighting
06:29
Reflections
04:12
Custom Functions
07:39
Refractive Glass
05:03

Conclusion

3 lectures
Summary
01:21
Useful links
00:09
Bonus lecture
01:01

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.