Join the Discord: / discord
Follow me on Twitch: / gameswthgabe
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.
Challenges: https://github.com/codingminecraft/Mi...
Planet Shader (HamzaHutchinson): https://www.shadertoy.com/view/llj3zV
Plus Shader (Nimitz): https://www.shadertoy.com/view/4slXW7
Sierpenski Fractal Shader (Klems): https://www.shadertoy.com/view/XljSWm
3Blue1Brown Linear Transformations: • Linear transformations and matrices |...
Shader Versions: https://en.wikipedia.org/wiki/OpenGL_...
GLSL Builtin Variables: https://www.khronos.org/opengl/wiki/B...)
Vector Constructors: https://www.khronos.org/opengl/wiki/D...
Vector Types: https://www.khronos.org/opengl/wiki/D...
glCreateShader: https://www.khronos.org/registry/Open...
glUniform: https://www.khronos.org/registry/Open...
Qualifier Order: https://www.khronos.org/opengl/wiki/T...
My code: https://github.com/codingminecraft/Mi...
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:
(by Kali): https://www.shadertoy.com/view/NlsXDH
(by knarkowicz): https://www.shadertoy.com/view/XtlSD7
(by EvilRyu): https://www.shadertoy.com/view/Xd3fR7
Book of Shaders: https://thebookofshaders.com/
Music from Music Vine
Fire (by Raft): https://musicvine.com/track/raft/fire
The Gift (by Onsoho): https://musicvine.com/track/onsoho/th...
Blue Waltz (by Yoav Ilan): https://musicvine.com/track/yoav-ilan...
“The Soft Block” licensed via Music Vine: 5KEXLAZZUKPIVGS2
Muse (by Braden Deal): https://musicvine.com/track/braden-de...
Tell Your Story (by Adi Goldstein): https://musicvine.com/track/adi-golds...
“Fickle” licensed via Music Vine: ZX7THVN1L1UQWYD0
---------------------------------------------------------------------
Website: https://ambrosiogabe.github.io/
Github: https://github.com/ambrosiogabe
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:
Game Engine Architecture: https://www.gameenginebook.com/
Game Physics Cookbook (Read this before the next physics book): https://www.amazon.com/Game-Physics-C...
Game Physics (Ian Millington): https://www.amazon.com/Game-Physics-E...
Game Programming Patterns (Free): https://gameprogrammingpatterns.com/
My Recommended Beginning Game Programming Books:
JavaScript Game Design: https://www.apress.com/gp/book/978143...
My Recommended Java Books:
Data Structures/Algorithms: https://www.amazon.com/Data-Structure...
LWJGL (Free, but I haven't read this thoroughly): https://lwjglgamedev.gitbooks.io/3d-g...
Watch video How Shaders Work (in OpenGL) | How to Code Minecraft Ep. 3 online without registration, duration hours minute second in high quality. This video was added by user GamesWithGabe 28 January 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 114,292 once and liked it 4.2 thousand people.