Рет қаралды 18,830
In this video we learn a basic technique to add shadows to the 3D scene.
Timecodes
00:00 Intro
00:16 Spot light example
01:24 Characterizing the shadowed pixels
02:03 The shadow test
02:27 Shadow mapping
04:59 Perspective division
06:00 Shadow test example
06:21 The ShadowMapFBO class
08:00 The shadow pass
10:23 Testing the shadow pass
11:00 The lighting pass
16:25 Conclusion
Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist at • OpenGL for Beginners
Please visit ogldev.org to see more of my tutorials on modern OpenGL.
Link to source: github.com/emeiri/ogldev/blob...
More info:
My shadow mapping tutorials: ogldev.org/www/tutorial23/tut...
ogldev.org/www/tutorial24/tut...
Shadow mapping tutorial by Joey de Vries: learnopengl.com/Advanced-Ligh...
Intro on ApiTrace: • Debugging Your OpenGL ...
OpenGL 4.6 specification: www.khronos.org/registry/Open...
Feel free to comment below.
Email: ogldev1@gmail.com
Github: github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): ogldev.org/donate.html
Patreon: / ogldev
Credits:
Music: "Black Hole" by Creator Mix (creatormix.com/)
Models:
** "Ordinary House" by tastyfish (www.blendswap.com/blend/19501)
** www.mixamo.com/#/?page=1&quer...
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials