I coded a Minecraft Shader with Distant Horizons - Here's How
Samuel Gerkin Samuel Gerkin
5.52K subscribers
102,788 views
0

 Published On Jun 19, 2024

Support future videos! :)
https://buymeacoffee.com/samuelgerkin

Learn from the ground up how to code a Minecraft shader with GLSL! Or just come along for the ride to see what goes into reimagining Minecraft's visuals!

Theme Song “Sam with a Plan” by
Hunter Gerkin
https://huntergerkin.bandcamp.com

The finished shader! (in alpha) - Requires labPBR resource pack for reflections!
https://modrinth.com/shader/daybreak-...

3Blue1Brown Linear Alegebra Series: (for vector and matrix fluency):
   • Essence of linear algebra  

Space Conversion Cheat Sheet:
https://shaderlabs.org/wiki/Coordinat...

Optifine Doc (applies to Iris too):
https://github.com/sp614x/optifine/bl...

ShaderDoc (for Iris):
https://github.com/IrisShaders/Shader...

Shader Labs (a great resource for learning about Minecraft shaders with a discord community!)
https://shaderlabs.org/wiki/Main_Page

Mods:
https://www.irisshaders.dev/
https://modrinth.com/mod/indium/versions
https://modrinth.com/mod/sodium/versions
https://modrinth.com/mod/fabric-api/v...
https://modrinth.com/mod/distanthoriz...

Timestamps:
00:00 - start
00:19 - setup time!
01:17 - shader creation begins!
01:53 - adding first files
02:29 - first code! + vertex shader
03:12 - optifine doc
03:40 - vaPosition in + vertex shaders explained
05:19 - frag shaders explained
05:55 - frag shader code
06:52 - first visualization + spaces explained
08:01 - converting vertex pos space
09:00 - adding textures
11:23 - adding terrain stage for offset
12:21 - adding curved horizon
14:49 - creating include files
16:45 - adding transparency
18:11 - adding foliage color
21:00 - adding sky shader
22:53 - adding lights
29:51 - color spaces
30:41 - distant horizons!
36:00 - distant horizons fog
40:21 - What's next

show more

Share/Embed