Adding Realistic Shadows to my 3D Python Game

Опубликовано: 01 Март 2025
на канале: DaFluffyPotato
30,654
1.7k

Check out https://brilliant.org/DaFluffyPotato/ to start your free 30 day trial of Brilliant and receive 20% off a premium subscription.

The most important feature in Minecraft shaders are the dynamic shadows. While I was working on a game engine for a future project of mine, I decided to take a quick stop to create Minecraft along with some fancy shadowmapping shaders using Python, Pygame, and ModernGL.

Wishlist Yawnoc:
https://store.steampowered.com/app/28...

Learning resources for shadowmapping:
https://learnopengl.com/Advanced-Ligh...

My Discord:
  / discord  

Support Me (and get source code for the project in this video):
  / dafluffypotato  
   / @dafluffypotato  

My Website (links to games):
https://dafluffypotato.com

Special thanks to my Potato Tier Patrons:
Agent Effe
Damion
Eivind Teig
f0ursqu4r3
Levi Jeske
Rethanon
Sam Cork
Szabolcs Dombi
tbf135

Timestamps:
0:00 - shadows are key
0:50 - why
1:08 - world generation
1:42 - a simple concept
2:19 - what's a shader?
3:52 - depth buffers
4:12 - implementation
6:05 - polishing the shadows
7:03 - final thoughts

#gamedev #pygame #python