Из-за периодической блокировки нашего сайта РКН сервисами, просим воспользоваться резервным адресом:
Загрузить через ClipSave.ruУ нас вы можете посмотреть бесплатно OpenGL Tutorial 14 - Depth Buffer или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса savevideohd.ru
In this tutorial I'll show you how the Depth Buffer in OpenGL works and how we can change it to create different simple effects. NOTE: If you are having trouble loading in the models in this tutorial, it might be because the names of the textures are "diffuse" and "specular" instead of "baseColor" and "metallicRoughness" like in the previous tutorial. To fix this simply make the 'getTextures' function accept "baseColor" or "diffuse" and "metallicRoughness" or "specular" like this: if (texPath.find("baseColor") != std::string::npos || texPath.find("diffuse") != std::string::npos) else if (texPath.find("metallicRoughness") != std::string::npos || texPath.find("specular") != std::string::npos) Also note that in the Vertex Shader I removed the negative sign from the rotation matrix! Source Code & Models https://github.com/VictorGordan/openg... OpenGL Documentation https://www.khronos.org/registry/Open... Discord Server / discord Patreon / victorgordan Timestamps 0:00 Introduction 0:16 Depth Buffer Explanation 0:49 glDepthFunc Options 1:15 Viewing the Depth Buffer 1:37 Depth Value Function 2:08 Linearizing Depth Function 2:19 Viewing Linear Depth 2:43 Z-fighting 3:38 Fog Effect 4:30 Ending References https://learnopengl.com/Advanced-Open... https://sketchfab.com/3d-models/photo... https://cc0textures.com/view?id=Groun... #opengl #opengltutorial #computergraphics #cpp #visualstudio