diff --git a/docs/05 Advanced Lighting/04 Normal Mapping.md b/docs/05 Advanced Lighting/04 Normal Mapping.md index a9bdff0..2b6a518 100644 --- a/docs/05 Advanced Lighting/04 Normal Mapping.md +++ b/docs/05 Advanced Lighting/04 Normal Mapping.md @@ -398,7 +398,7 @@ vector specularMaps = this->loadMaterialTextures( ```c++ vec3 T = normalize(vec3(model * vec4(tangent, 0.0))); -vec3 N = normalize(vec3(model * vec4(tangent, 0.0))); +vec3 N = normalize(vec3(model * vec4(normal, 0.0))); // re-orthogonalize T with respect to N T = normalize(T - dot(T, N) * N); // then retrieve perpendicular vector B with the cross product of T and N