blurrypiano / littleVulkanEngine

Code repo for video tutorial series teaching Vulkan and computer graphics
MIT License
829 stars 147 forks source link

Little Vulkan Engine

(Prior version of repo has now been moved to the tut0-22 branch)

A video tutorial series introducing computer graphics for Vulkan®, the new generation graphics and compute API from Khronos. The focus of this tutorial is to be approachable to newcomers to computer graphics and graphics APIs, explaining not just the Vulkan API but also computer graphics theory, mathematics and engine architecture.

Table of Contents

Building

Unix Build Instructions

MacOS Build Instructions

Install Dependencies

Windows build instructions

Building for Visual Studio 2019

 cd littleVulkanEngine
 mkdir build
 cmake -S . -B .\build\

Building for minGW

 cd littleVulkanEngine
 ./mingwBuild.bat

Tutorials

Vulkan Basics - Tutorials 0 to 22

This branch is a legacy branch that holds all the older tutorials in the series, starting from the beginning and going up until tutorial 22.

Point Lights

Find the Preliminary Completed Project Here

21 - Intro to Point Lights

In this tutorial we add a point light object to the global UBO and update the vertex shader to make use of this new lighting technique. (Video)

22 - Vertex vs Fragment Lighting

In this tutorial we explore the differences in per-fragment versus per-vertex lighting (Video)

23 - Project Restructure and cmake

In this tutorial I change the project to use cmake rather than a simple makefile to make building on multiple platforms simpler and more straightforward. (Video)

24 - Billboards

In this tutorial we implement a second rendering system that uses the billboard technique to render a spherical point light. (Video)

25 - Multiple Point Lights

In this tutorial we add support for multiple point light objects in the scene. Lights will still be stored in the GlobalUbo, however for rendering the light objects we will use push constants.

(Video)

26 - Specular Lighting

In this tutorial we add specular lighting to our simple fragment shader.

(Video)

27 - Alpha Blending and Transparency

In this tutorial we add a limited blending capability to our point light system, allowing them to be rendered with a nicer appearance.

(Video)

Official Khronos Vulkan Samples

Khronos made an official Vulkan Samples repository available to the public (press release).

You can find this repository at https://github.com/KhronosGroup/Vulkan-Samples

Credits

Thanks to the authors of these libraries :

Thanks to LunarG

Thanks to the wonderful opensource examples by Sascha Willems

Thanks to ThinMatrix and his wonderful OpenGL game tutorial series which was a huge inspiration for this series and how I first started learning computer graphics

Thanks to Sean Plott and the #DK30 challenge, for providing the motivating kick to give this a shot

Attributions / Licenses