diff --git a/src/Magnum/Shaders/Phong.cpp b/src/Magnum/Shaders/Phong.cpp index 6936dbf7a..5dab73cab 100644 --- a/src/Magnum/Shaders/Phong.cpp +++ b/src/Magnum/Shaders/Phong.cpp @@ -118,6 +118,8 @@ Phong::Phong(const Flags flags, const UnsignedInt lightCount): _flags{flags}, _l { bindAttributeLocation(Position::Location, "position"); bindAttributeLocation(Normal::Location, "normal"); + if(flags & Flag::NormalTexture) + bindAttributeLocation(Tangent::Location, "tangent"); if(flags & (Flag::AmbientTexture|Flag::DiffuseTexture|Flag::SpecularTexture)) bindAttributeLocation(TextureCoordinates::Location, "textureCoordinates"); }