PacktPublishing / Mastering-Graphics-Programming-with-Vulkan

MIT License
509 stars 65 forks source link

Wrong check in frag shader #56

Open valleymouth opened 1 month ago

valleymouth commented 1 month ago

https://github.com/PacktPublishing/Mastering-Graphics-Programming-with-Vulkan/blob/a03272b227a64a85a7b32b89ee5362671835f7d6/source/chapter2/shaders/main.frag#L139

Should be : if (textures.y != INVALID_TEXTURE_INDEX) {

theWatchmen commented 2 weeks ago

Indeed, thanks for spotting this! I'll push a fix shortly :)

valleymouth commented 2 weeks ago

Awesome, learning a lot from the book btw :)