Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Coding in Unity: Introduction to Shaders
Rating: 4.2 out of 5(103 ratings)
835 students

Coding in Unity: Introduction to Shaders

Make your game look unique through image effects, shaders and custom lighting by learning Unity's ShaderLab language.
Created byJenny Hide
Last updated 11/2020
English
English [Auto],

What you'll learn

  • Program surface shaders - Unity's approach to making it easier to write lit shaders.
  • Code lower level fragment and vertex shaders.
  • Program post-processing images effects.
  • Use your new knowledge to create your own, unique shaders and game feel.
  • Understand Unity's ShaderLab and CG/HLSL.
  • Write your own shaders for Unity's built-in Render Pipeline.
  • Create your own custom lighting

Course content

10 sections60 lectures3h 20m total length
  • Introduction to Meshes4:05

    What are shaders? Get a basic understanding!

  • Vertex and Fragment Shaders2:47

    An introduction to vertex and fragment shaders.

  • Surface Shaders2:22

    An introduction to surface shaders.

  • Image Effects1:45

    Learn when you should use a surface shader and when you should use a vertex and fragment shader.

  • Unity's In-built Shaders and HLSL Functions2:53

    Using .cginc files for a modular approach.

  • The Render Pipeline and Unity's Shader Graph0:52

    A note on the render pipeline.

Requirements

  • You should have and know how to use Unity 5.6 or above (the free version is fine).
  • You should be able to program in C#.
  • You should be familiar with basic mathematical functions like sin and cos, or be willing to learn about them.
  • You need to have Blender installed as the downloadable materials contain .blend files.

Description

Learn the basic concepts and language you will need to program your own shaders and image effects for Unity's built-in render pipeline, for Unity 5 or above. 


Learn and Understand Shaders with this Unity Course.


  •  Learn about the different properties of a mesh that can be accessed and changed via a shader.

  •  Write your own vertex and fragment, and surface shaders.

  •  Create your own image effects.

  • Write custom lighting models.

  • Understand ShaderLab and CG/HLSL.


Make your game look unique using shaders.

In this course, you will learn the basics of programming shaders, from simple colour changes to whole screen image effects. We'll go through the different types of shader, Unity's quirks and in-built functions, and the different bits of code that make up a shader, before writing a full surface shader with a texture, normal map, metallic and emissive effects. We'll also look at writing a custom inspector for your shader. Once we've covered these basics, we'll look at creating an number of image effects, custom lighting models including cel shading, a sprite shader with a sway effect, and a dissolve effect.

A common criticism of Unity is that games made with the engine all have a similar look. Combat this by writing your own shaders rather than relying on Unity's inbuilt ones - learn how to improve the look and feel of your game.

By the end of this course, you will understand the basics of shader coding and will be able to create your own shaders. Source code is included to help you on your way.

This course is designed for people who can already use Unity and can program in C#, but who have no previous experience of programming shaders.

I present examples of increasing difficulty for each type of shader (surface, vertex/fragment and image effect) designed to help you to understand how shaders work so that you can be confident in creating your own effects. 

For extra support, you can ask questions in the Q&A section, and I’ve provided the completed code examples for download in each Section. You’ll receive a certificate of completion once you finish the course.


Who this course is for:

  • Intermediate level Unity developers who want to learn how to code their own shaders from scratch.
  • People with no shader coding experience.
  • This course is not for people new to Unity or C#.
  • This course is not for people wanting to learn Unity's Shader Graph.
  • People wanting to create their own shaders for Unity's built-in Render Pipeline.