Tutorialspoint

April Learning Carnival is here, Use code FEST10 for an extra 10% off

Learn GLSL Shaders from Scratch

person icon Nicholas Lever

4.4

Learn GLSL Shaders from Scratch

Bring your WebGL alive with custom shaders

updated on icon Updated on Apr, 2024

language icon Language - English

person icon Nicholas Lever

English [CC]

category icon Development,Web Development

Lectures -43

Resources -3

Duration -3.5 hours

4.4

price-loader

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.

Course Description

In this course we're going to look at GLSL ( OpenGL Shading Language) to create amazing effects.

Maybe you are

  • a designer who has seen some terrific, cutting edge websites using cool transitions and wondered how it was done. You may have heard about WebGL and know that you can use some simple THREE.js code to do some remarkable things.

  • a developer trying to visualise some data in a striking way.

  • a game developer wanting to add some custom effects to your 3d objects surfaces.

GLSL is how you can use OpenGL to display a surface. 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. GLSL uses the GPU ( the Graphics Processing Unit) to handle multiple programs at the same time, so it is unbelievably fast.

In the course we will be writing code for the browser, because this allows us to focus on GLSL, without needing to worry about installing any additional software. We will be using the THREE.js WebGL library and CodePen so you can instantly edit the source and see the results, needing nothing other than a browser to experiment. Only a small amount of Javascript is used but this will be explained thoroughly as it comes along. But you can also use what you learn about GLSL in a C/C++/C# program or a Python program.

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 on CodePen, so you can experiment with different values to see the impact it has on the end result.

GLSL 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.

Creating your own shaders means understanding the GLSL language and that is the aim of the course. You could search for a suitable shader on ShaderToy, ShaderFrog or glslViewer 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 GLSL language, shaping functions, tiling, polar coordinates 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.

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

Goals

What will you learn in this course:

  • Learn to use GLSL to create great shaders.
  • Create great image manipulating shaders for cool website effects.
  • Learn to combine your shaders with lighting effects.
  • Learn how to create explosions and fire shaders.
  • Learn how to create procedural textures.
  • Learn to create HUD displays for real-time 3d applications.
  • Learn how we can use shaders to manipulate the geometry of a model

Prerequisites

What are the prerequisites for this course?

  • Only internet access is required.
Learn GLSL Shaders from Scratch

Curriculum

Check out the detailed breakdown of what’s inside the course

Introduction
4 Lectures
  • play icon Welcome to the course 03:51 03:51
  • play icon Introduction 03:06 03:06
  • play icon Parallel Processing 02:00 02:00
  • play icon Course Resources
First steps
10 Lectures
Tutorialspoint
Shaping functions
12 Lectures
Tutorialspoint
Noise
3 Lectures
Tutorialspoint
Using textures
4 Lectures
Tutorialspoint
Vertex shaders
3 Lectures
Tutorialspoint
Lighting
3 Lectures
Tutorialspoint
Post Processing
2 Lectures
Tutorialspoint
Conclusion
2 Lectures
Tutorialspoint

Instructor Details

Nicholas Lever

Nicholas Lever

e


Course Certificate

Use your certificate to make a career change or to advance in your current career.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515