In this video (and the next one) I implement an entire chapter on fog rendering from the book "ShaderX2 - Introductions and tutorials with DirectX9". The chapter was written by Markus Nuebel. It contains five techniques in growing level of complexity. The implementation will be done in OpenGL.
🔥 See the list of the books that I'm using as background information for my tutorials: [ Ссылка ]. 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!).
Timecodes
0:00 Intro
2:18 Fog in general
3:40 Technique #1: Linear fog
7:34 Technique #2: Exponential fog
10:36 Technique #3: Exponential squared fog
11:28 Conclusion
Download the book for free: [ Ссылка ]
Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist at [ Ссылка ]
Please visit [ Ссылка ] to see more of my tutorials on modern OpenGL.
Link to source: [ Ссылка ]
Checkout the tag 'TUT_39_FOG_PART_1' to get the same version of the code that was used in the video.
OpenGL 4.6 specification: [ Ссылка ]
Feel free to comment below.
Email: ogldev1@gmail.com
Github: [ Ссылка ]
Twitter: @ogldev
One time donations (Paypal): [ Ссылка ]
Patreon: [ Ссылка ]
Credits:
Video by Andreas from Pixabay
Video by Joe Hackney from Pixabay
Video by Matthias Groeneveld from Pixabay
Image by Peter John Acklam ([ Ссылка ])
Terrain model: [ Ссылка ]# by fieldaniel.
Texture: [ Ссылка ] by Rob Tuytel
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials
Ещё видео!