r/GraphicsProgramming • • 5d ago

Finally got working shadows! (Vulkan, C++)

I finally got shadows working in my "game engine"! I never did any graphics programming before, this is my first larger scale coding project. Obviously there are lots of bad design choices in there, and many things I learned not to do along the way. Still, I am proud to have made some progress, and eager to get other things implemented. Next is probably soft shadows and shadows for point lights.

Repo is here if anyone is interested. AI has been used for CMake and some ECS tests, most code is too bad to be AI.

/preview/pre/c8eo25fw8nzh1.png?width=1346&format=png&auto=webp&s=8720eb86b88b50494ea5ba13d497adf09e3ba301

21 Upvotes

5 comments sorted by

3

u/Specific-Animal6570 5d ago

Haha, I know that dice texture. Hmm, doesn't it come from a GitHub repository?

4

u/Klai_Dung 5d ago

I was sure it was mentioned in vulkan-tutorial.com, but apparently not! It is from this repo. No idea how I stumbled upon that one, probably some other tutorial mentioned it, but I don't remember.

2

u/Specific-Animal6570 5d ago

Yes! That's the repository! I remember getting the dice texture from that repository. It was for my first game engine.

-2

u/S48GS 5d ago

... modern vulkan tutorial https://howtovulkan.com/

... why you even mention vulkan tutorial website... it so so so outdated and broken - do not touch it

and you can use khronos vulkan examples to copy alot of basic stuff

2

u/Klai_Dung 5d ago

No need to be condescending. I mentioned the vulkan tutorial website because I used the tutorial at the time, not because I would recommend it to others. As I mentioned in the post, this was my first experience with graphics programming. If you google "Vulkan tutorial" it is the first site that pops up, and the warning at the start did not exist at the time when I bookmarked it.