openglsuperbible / sb7code

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

bumpmapping cannot work #27

Open ravencormen opened 7 years ago

ravencormen commented 7 years ago

i compile the solution under vs2015 with recompiled glew lib, sb7 lib. but the bumpmapping project cannot work, it seems the texture cannot display properly. screenclip

alevonian commented 6 years ago

Looks like the problem was in the vertex shader. The wrong light vector symbol was being used in the calculation.

I've attached the fixed shader file. bumpmapping.vs.zip

Siri94 commented 6 years ago

35