In this video we study two methods to light a terrain - the standard Diffuse Lighting and the novel technique of Slope Lighting.
🔥 See the list of the books that I'm using as background information for my tutorials: https://ogldev.org/books.html. I highly recommend them for learning more about OpenGL and Vulkan. These are affiliate links so if you use them to buy any of the books the price is the same for you and I will get a small commission (thank-you!).
This video is based on "Focus on 3D Terrain Programming" by Trenk Polack: https://www.amazon.com/Focus-Terrain-....
Slope Lighting is based on an article by Charlie Van Noland: https://archive.gamedev.net/archive/r...
More info on diffuse lighting: • Diffuse Lighting // OpenGL Tutorial #20
More info on loading models using Assimp: • Loading Models Using Assimp // OpenGL...
Timecodes:
0:00 Intro
0:52 Diffuse Lighting
2:03 Normal vector calculation
7:31 Slope Lighting
9:04 Improving Slope Lighting
14:14 Slope Lighting problems
15:58 Conclusion
Make sure to watch all the previous tutorials in the 'Terrain Rendering' playlist at • Terrain Rendering
Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.
Link to source: https://github.com/emeiri/ogldev/blob...
If you want to get the version that was used in the video checkout the tag TERRAIN5.
OpenGL 4.6 specification: https://www.khronos.org/registry/Open...
Feel free to comment below.
Email: [email protected]
Instagram: @ogldev1
Github: https://github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): https://ogldev.org/donate.html
Patreon: / ogldev
Credits:
Music: "Elevate" by https://bensound.com
'Right hand rule' image: https://en.wikipedia.org/wiki/Right-h...
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials