Рет қаралды 4,844
In this video we continue our journey with Shadow Mapping and we learn how to use Orthographic Projection in order to implement shadows with a directional light.
Watch the previous tutorial for background on Shadow Mapping: • Basic Shadow Mapping /...
Timecodes
00:00 Intro
00:23 Recap and background
01:36 Directional light VS spot light
02:15 Orthographic Projection background
03:41 Orthographic Projection matrix
05:18 Mapping the view volume to NDC
07:01 Creating the matrix
07:50 Right handed VS left handed system
08:08 Matrix code review
08:31 Testing Orthographic Projection
08:55 Changes to the main application code
10:06 Changes the lighting fragment shader
10:23 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...
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:
Model by TastyFish (blendswap.com/blend/20163)
Sun Image by OpenClipart-Vectors from Pixabay
CAD images:
* • Computer-aided design ...
* • Design Warehouse ,
* • reading structural dra...
Music: "Dream Avenue" by CreatorMix (creatormix.com/)
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials