Not so long ago, I came across a lesson on Normal Mapping (well, or Bump Mapping) and decided to repeat ..
Well, there is an interesting moment when normals are calculated with Bump corrections from the texture. This happens ..
5 line in normal to go to the new data from the bump of the card but it is not overwritten why?!
If someone owns the information would be glad to listen!
vec3 normal = normalize(fs_in.Normal); if(normalMapping) { // Obtain normal from normal map in range [0,1] normal = texture(normalMap, fs_in.TexCoords).rgb; //Она же должна перезаписаться !!!!?? // Transform normal vector to range [-1,1] normal = normalize(normal * 2.0 - 1.0); } 

