openglsuperbible / sb7code

Source code and supporting material for the 7th Edition of OpenGL SuperBible
727 stars 251 forks source link

An example of bumpmapping cannot appear. #35

Closed Siri94 closed 6 years ago

Siri94 commented 6 years ago

Your GitHub repository is fine, but your media/shader has a trivial error:

media/shaders/bumpmapping/bumpmapping.fs.glsl:0(6) : error C7532: layout(binding) requires "#version 420" or later 0(6) : error C0000: ... or #extension GL_ARB_shading_language_420pack : enable 0(7) : error C7532: layout(binding) requires "#version 420" or later 0(7) : error C0000: ... or #extension GL_ARB_shading_language_420pack : enable

I fixed a version over 420 in your (fragment/vertex)shader code and it was working, yes that was trivial.