openglsuperbible/sb6code

bumpmapping example uses GLSL #version 410 but uses 4.2 binding syntax.

Opened this issue · 1 comments

https://github.com/openglsuperbible/sb6code/blob/master/bin/media/shaders/bumpmapping/bumpmapping.fs.glsl

and

https://github.com/openglsuperbible/sb6code/blob/master/bin/media/shaders/bumpmapping/bumpmapping.vs.glsl

Both have #version 410 core at the top but use binding syntax that according to https://www.opengl.org/wiki/Sampler_(GLSL)#Version_4.20_binding is only for OpenGL 4.2 or later causing it to fail to compile on nvidia and not render.

Simple fix, bump the version to 420 core.

Bumping to 420 kinda leaves macOS in a lurch, doesn't it? Even Mojave doesn't seem to support ARB_shading_language_420pack, at least on this Macmini6,1.