I’ve tried to add a bumpMap to a shader material, I get no errors in the console but the bumpMap doesnt show up on the 3d globe, I also added a specular map and directional lighting but the specular map does not show up either.
For the custom shader, you will have to implement bump map yourself. In your code, you don’t even pass bumpMap to the fragment shader, so it has no effect (and there is no code that uses bump map).
It’s not that simple. Bump map (as well as normal map) serves the purpose of perturbing the surface normal that in turn affects the amount of diffused light.
Without implementing light in your shader (and there are different illumination models, like, for example, Lambertian diffusion), you won’t find much use of a bump map.
So it’s a relatively complex task. For example, this is my custom implementation for bump map in fragment shader, just to show you won’t get away with one line of code:
Sorry I’m really confused, I did add a directional light in my code but didn’t include it in the segment I showed you, is it possible for you to edit my code on Glitch :・゚✧ and show me how to implement the bump map because I don’t fully understand the code that you’ve posted?
I don’t see any shader code on that page that implements either directional light or illumination model, so I can’t help here.
You need to write the whole shader program from scratch and for that you need to know GLSL.