How Shaders Work (in OpenGL) | How to Code Minecraft Ep. 3

preview_player
Показать описание

In this episode I do a deep dive into the code and concepts behind GLSL shaders. I go over everything from how to construct them, compile and link them, and execute them on the GPU to how to think about shaders conceptually. This is the next episode in the Coding Minecraft tutorial series. In the next episode I will be covering dynamic textures and texture UVs.

Bookmarks:
0:00 Intro
1:00 Subscribe!
1:13 Vertex Shader Transformations
3:31 Coding the Transformation Matrix
4:23 Coding the View Matrix
5:48 Coding the Projection Matrix
7:04 How GLSL Works
10:41 GLSL Custom Constructors
11:15 Vector Swizzling
12:43 Compiling Shaders
13:49 Error Checking Compilations
15:30 Linking Shaders
16:24 Error Checking Linking
17:19 GLSL Reflection
19:56 Uploading Uniforms
21:11 In/Out/Flat Keywords
24:00 Shaders Conceptually

Shaders at the end of the video:

Music from Music Vine
“The Soft Block” licensed via Music Vine: 5KEXLAZZUKPIVGS2
“Fickle” licensed via Music Vine: ZX7THVN1L1UQWYD0

---------------------------------------------------------------------

Here are some books I recommend if you want to learn about game engine development more thoroughly. I do not profit off any of these sales, these are just some books that have helped me out :)

My Recommended Game Engine Books:

My Recommended Beginning Game Programming Books:

My Recommended Java Books:
Рекомендации по теме
Комментарии
Автор

Looking forward to the 36 hour version for Vulkan

MysteryPancake
Автор

I really love this series! Very excited to see where it goes.

patrickcomden
Автор

Why am I watching this at 4am. I don't even make games

GVal
Автор

Amazing series. Sad that only 4% of people are subscribe. This is professional course level content for free.

orbyfied
Автор

Not sure if you'll ever see this, but I just wanted to say that I think this series is really cool!

I tried doing this "Code a Minecraft clone" type project a while ago but never got far past rendering a few cubes - mostly due to confusion and lack of understanding in terms of OpenGL coding.
If I'm being honest though, I think this explains a lot of neat concepts that helped me understand some of the issues I had in the past, though.

doodle_
Автор

just when i started going through this series there's a new episode. Nice!

hirzanabqary
Автор

This is best explanation of shaders I've ever seen.

merlang
Автор

Instant sub. This was the first video I’ve ever seen of yours and it is so, so helpful. I’m so excited to binge watch your whole channel!!!

bxnny
Автор

This is a series I've alway been looking for, but could never find it. Please make more videos, I really enjoy this kind of content!

dimi
Автор

This explained really well how glsl stuff works. I had a course a while ago, but was not quite sure and this video really drove home how it works internally. I also didn't really understand the whole "Shader" vs "Program" stage until now.

Great explanation!!!

EnderKill
Автор

Incredibly informative and well done as always. Great video and thank you for the quality content :)

zeon
Автор

2:19 mario can go inside a tube!!! Amazing!

w.t.
Автор

Dude top notch! I feel like I’m back in college! Thank you!

Dasedandconfused
Автор

Really like how you progressed with your explanations. Feeling like I am watching discovery channel how it works

Destroyer
Автор

Good video for everybody who wants to learn about shaders! :)

lobotomiepraktikant
Автор

I'm impressed by your ability to explain such things o.o ❤

RonnyRun
Автор

this gotta be the best opengl tutorial

kurciqs
Автор

This series has given me motivation to try out GPU programming with Metal (not OpenGL, but each to their own), thank you!

georgeelsham
Автор

shaders is really daunting the first time I learned about it, it still is.

紺野-純子
Автор

Kozel thing in head hurt.

Maybe this info and tutorial would be usefull to me if I was wanting to learn how to do it.

KozelPraiseGOELRO
join shbcf.ru